From 10d55b112963406dec3164396b9e8378f6d63961 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 19 Dec 2013 15:11:45 -0600 Subject: Only define MNT_DETACH for old glibc, portability.h included _before_ sys/mount.h... --- lib/portability.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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 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 -- cgit v1.2.3