From 69c1f07506ef56973b543c3ec111a4673c11f16c Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Sun, 12 Jun 2005 02:15:11 +0000 Subject: Changed files for glibc compatibility so that more NPTL files would build. --- libpthread/nptl/sem_open.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libpthread/nptl/sem_open.c') diff --git a/libpthread/nptl/sem_open.c b/libpthread/nptl/sem_open.c index a4b2f5b3a..1fb72d2d4 100644 --- a/libpthread/nptl/sem_open.c +++ b/libpthread/nptl/sem_open.c @@ -18,6 +18,9 @@ 02111-1307 USA. */ #include +#ifdef __PTHREADS_NATIVE__ +#define __USE_GNU +#endif #include #include #include @@ -36,6 +39,17 @@ #include "semaphoreP.h" +/* Compatibility defines. */ +#if __UCLIBC__ +#define __endmntent endmntent +#define __fxstat64(vers, fd, buf) fstat64(fd, buf) +#define __getmntent_r getmntent_r +#define __setmntent setmntent +#define __statfs statfs +#define __libc_close close +#define __libc_open open +#define __libc_write write +#endif /* Information about the mount point. */ struct mountpoint_info mountpoint attribute_hidden; -- cgit v1.2.3