Mercurial > hg > toybox
changeset 1148:d01ab969cc5d draft
Only define MNT_DETACH for old glibc, portability.h included _before_ sys/mount.h...
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 19 Dec 2013 15:11:45 -0600 |
parents | 473491dbd8c3 |
children | 2213cedd15b4 |
files | lib/portability.h |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 <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