diff options
author | François Revol | 2010-07-26 11:43:51 +0200 |
---|---|---|
committer | Karel Zak | 2010-07-26 11:43:51 +0200 |
commit | 9779651e2b6c06159a583d5852f1a54c000c6c8e (patch) | |
tree | 41cc3a9ead218adc134cfe3104eb4748cea02410 /lib | |
parent | portability: use standard constants (diff) | |
download | kernel-qcow2-util-linux-9779651e2b6c06159a583d5852f1a54c000c6c8e.tar.gz kernel-qcow2-util-linux-9779651e2b6c06159a583d5852f1a54c000c6c8e.tar.xz kernel-qcow2-util-linux-9779651e2b6c06159a583d5852f1a54c000c6c8e.zip |
portability: fix mntent.h and pty.h usage
Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ismounted.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ismounted.c b/lib/ismounted.c index fa7e82252..592df3086 100644 --- a/lib/ismounted.c +++ b/lib/ismounted.c @@ -11,11 +11,17 @@ #include <stdlib.h> #include <errno.h> #include <fcntl.h> +#if HAVE_MNTENT_H #include <mntent.h> +#endif #include <string.h> #include <sys/stat.h> #include <ctype.h> #include <sys/param.h> +#ifdef __APPLE__ +#include <sys/ucred.h> +#include <sys/mount.h> +#endif #include "pathnames.h" #include "ismounted.h" |