summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-08-29 16:28:39 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2011-08-29 16:28:39 +0200
commite92dd410fd15fcb291386a0cbfc1d6247b1fc26b (patch)
tree14fc112bc3108b7acb6349e1a8ce819aa0e20475 /sal
parent79fee152187615ce4735883ab5d5347e34de4e60 (diff)
We do not need to use GLIBC here
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/system.c4
-rw-r--r--sal/osl/unx/system.h31
2 files changed, 2 insertions, 33 deletions
diff --git a/sal/osl/unx/system.c b/sal/osl/unx/system.c
index e077291f99d8..4bb0e4643d1f 100644
--- a/sal/osl/unx/system.c
+++ b/sal/osl/unx/system.c
@@ -201,7 +201,7 @@ int macxp_resolveAlias(char *path, int buflen)
#endif /* NO_PTHREAD_RTL */
-#if (defined (LINUX) && (GLIBC >= 2))
+#if defined(LINUX)
/* The linux kernel thread implemention, always return the pid of the
thread subprocess and not of the main process. So we save the main
pid at startup
@@ -227,7 +227,7 @@ pid_t getpid(void)
return (pid);
}
-#endif /* (defined (LINUX) && (GLIBC >= 2)) */
+#endif /* defined LINUX */
#ifdef NO_PTHREAD_SEMAPHORES
int sem_init(sem_t* sem, int pshared, unsigned int value)
diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h
index ef6d884b89c8..c8f487170ba5 100644
--- a/sal/osl/unx/system.h
+++ b/sal/osl/unx/system.h
@@ -72,7 +72,6 @@
# define __USE_GNU
# endif
-#if GLIBC >= 2
# include <shadow.h>
# include <pthread.h>
# include <sys/file.h>
@@ -98,36 +97,6 @@
# define pthread_testcancel()
# define NO_PTHREAD_PRIORITY
# define PTHREAD_SIGACTION pthread_sigaction
-#else
-# include <shadow.h>
-# include <asm/sigcontext.h>
-# include <pthread.h>
-# include <sys/file.h>
-# include <sys/ioctl.h>
-# include <linux/net.h>
-# include <sys/un.h>
-# include <netinet/tcp.h>
-# include <linux/elfcore.h>
-# include <dlfcn.h>
-# include <endian.h>
-# if __BYTE_ORDER == __LITTLE_ENDIAN
-# ifndef _LITTLE_ENDIAN
-# define _LITTLE_ENDIAN
-# endif
-# elif __BYTE_ORDER == __BIG_ENDIAN
-# ifndef _BIG_ENDIAN
-# define _BIG_ENDIAN
-# endif
-# elif __BYTE_ORDER == __PDP_ENDIAN
-# define _PDP_ENDIAN
-# endif
-# define IORESOURCE_TRANSFER_BSD
-# define IOCHANNEL_TRANSFER_BSD_RENO
-# define pthread_testcancel()
-# define NO_PTHREAD_RTL
-# define NO_PTHREAD_PRIORITY
-# define PTHREAD_SIGACTION pthread_sigaction
-#endif
# ifndef ETIME
# define ETIME ETIMEDOUT