# HG changeset patch # User Rob Landley # Date 1387487505 21600 # Node ID d01ab969cc5df7c6e265173c52f686656aa3d28f # Parent 473491dbd8c39a387cfb1e051f763b5d350084a2 Only define MNT_DETACH for old glibc, portability.h included _before_ sys/mount.h... diff -r 473491dbd8c3 -r d01ab969cc5d lib/portability.h --- a/lib/portability.h Thu Dec 19 15:07:28 2013 -0600 +++ b/lib/portability.h Thu Dec 19 15:11:45 2013 -0600 @@ -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 @@ #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