summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sem_open.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-06-12 02:15:11 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-06-12 02:15:11 +0000
commit69c1f07506ef56973b543c3ec111a4673c11f16c (patch)
treec290e80a383f9013715f2ace3e8c49ae7490c654 /libpthread/nptl/sem_open.c
parent7910749bb6b82696ad718f2ef75e9e181f1ad6f4 (diff)
downloaduClibc-alpine-69c1f07506ef56973b543c3ec111a4673c11f16c.tar.bz2
uClibc-alpine-69c1f07506ef56973b543c3ec111a4673c11f16c.tar.xz
Changed files for glibc compatibility so that more NPTL files would build.
Diffstat (limited to 'libpthread/nptl/sem_open.c')
-rw-r--r--libpthread/nptl/sem_open.c14
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;