diff options
Diffstat (limited to 'libpthread/nptl/sem_open.c')
-rw-r--r-- | libpthread/nptl/sem_open.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 <errno.h> +#ifdef __PTHREADS_NATIVE__ +#define __USE_GNU +#endif #include <fcntl.h> #include <mntent.h> #include <paths.h> @@ -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; |