aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-12-19 15:11:45 -0600
committerRob Landley <rob@landley.net>2013-12-19 15:11:45 -0600
commit10d55b112963406dec3164396b9e8378f6d63961 (patch)
tree8eb42e0e381c6d7eb7b1430b22e237835c574294
parent68cff435a7641e92a4f261e12cd5dac53a1c7c2f (diff)
downloadtoybox-10d55b112963406dec3164396b9e8378f6d63961.tar.gz
Only define MNT_DETACH for old glibc, portability.h included _before_ sys/mount.h...
-rw-r--r--lib/portability.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 5506f2b5..75576204 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -42,10 +42,6 @@
#define AT_REMOVEDIR 0x200
#endif
-#ifndef MNT_DETACH
-#define MNT_DETACH 2
-#endif
-
// We don't define GNU_dammit because we're not part of the gnu project, and
// don't want to get any FSF on us. Unfortunately glibc (gnu libc)
// won't give us Linux syscall wrappers without claiming to be part of the
@@ -100,6 +96,10 @@ int mknodat(int fd, const char *path, mode_t mode, dev_t dev);
#include <sys/time.h>
int futimens(int fd, const struct timespec times[2]);
int utimensat(int fd, const char *path, const struct timespec times[2], int flag);
+
+#ifndef MNT_DETACH
+#define MNT_DETACH 2
+#endif
#endif
#endif