summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-05-20 13:00:07 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-05-20 13:00:07 -0700
commite1888aa26a1ea02436f7c13a1539c67c0e01a12b (patch)
treede502b0259c361c58f8b072ceb3def9bf44b313d /libpthread/nptl
parentdb8fd1125b2d1f8d748dc8505267f40bb49dfef8 (diff)
downloaduClibc-alpine-e1888aa26a1ea02436f7c13a1539c67c0e01a12b.tar.bz2
uClibc-alpine-e1888aa26a1ea02436f7c13a1539c67c0e01a12b.tar.xz
Only use fstat64 when LFS is enabled
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl')
-rw-r--r--libpthread/nptl/sem_open.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpthread/nptl/sem_open.c b/libpthread/nptl/sem_open.c
index aebd4c940..3bada7d46 100644
--- a/libpthread/nptl/sem_open.c
+++ b/libpthread/nptl/sem_open.c
@@ -166,8 +166,13 @@ check_add_mapping (const char *name, size_t namelen, int fd, sem_t *existing)
sem_t *result = SEM_FAILED;
/* Get the information about the file. */
+#ifdef __UCLIBC_HAS_LFS__
struct stat64 st;
if (__fxstat64 (_STAT_VER, fd, &st) == 0)
+#else
+ struct stat st;
+ if (fstat (fd, &st) == 0)
+#endif
{
/* Get the lock. */
lll_lock (__sem_mappings_lock);