From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- configure.ac | 2 ++ lib/ismounted.c | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 969c2cc..c42e475 100644 --- a/configure.ac +++ b/configure.ac @@ -231,6 +231,7 @@ AC_CHECK_HEADERS([ \ sys/ioccom.h \ sys/ioctl.h \ sys/mkdev.h \ + sys/mount.h \ sys/param.h \ sys/prctl.h \ sys/queue.h \ @@ -245,6 +246,7 @@ AC_CHECK_HEADERS([ \ sys/timex.h \ sys/ttydefaults.h \ sys/types.h \ + sys/ucred.h \ sys/un.h \ unistd.h \ ]) diff --git a/lib/ismounted.c b/lib/ismounted.c index 9095290..f83be65 100644 --- a/lib/ismounted.c +++ b/lib/ismounted.c @@ -18,9 +18,14 @@ #include <sys/stat.h> #include <ctype.h> #include <sys/param.h> -#ifdef __APPLE__ -#include <sys/ucred.h> -#include <sys/mount.h> + +#ifndef __linux__ +# ifdef HAVE_SYS_UCRED_H +# include <sys/ucred.h> +# endif +# ifdef HAVE_SYS_MOUNT_H +# include <sys/mount.h> +# endif #endif #include "pathnames.h" -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html