diff --git a/configure.ac b/configure.ac index a9c3c93f50b..db8e59e1baf 100644 --- a/configure.ac +++ b/configure.ac @@ -1962,7 +1962,7 @@ AC_CHECK_HEADERS([sys/types.h \ # On OpenBSD, pthread.h must be included before pthread_np.h AC_CHECK_HEADERS([pthread_np.h], [], [], [#include ]) -AC_CHECK_HEADERS([sys/statfs.h sys/statvfs.h sys/disk.h sys/disklabel.h sys/mount.h]) +AC_CHECK_HEADERS([sys/statfs.h sys/statvfs.h sys/disk.h sys/disklabel.h]) AC_CHECK_HEADERS([linux/hdreg.h linux/major.h]) AC_CHECK_HEADERS([sys/sysctl.h], [], [], diff --git a/include/tscore/ink_file.h b/include/tscore/ink_file.h index 8fd2f75579d..7c0ca9fd81e 100644 --- a/include/tscore/ink_file.h +++ b/include/tscore/ink_file.h @@ -47,7 +47,7 @@ // Darwin keeps statfs(2) in ... // Its problematic if linux/mount.h is already included so check for that -#if HAVE_SYS_MOUNT_H && !defined(_LINUX_MOUNT_H) +#if __has_include() && ! defined(_LINUX_MOUNT_H) #include #endif diff --git a/src/tscore/ink_file.cc b/src/tscore/ink_file.cc index 2139cecdb4c..c8643628ffc 100644 --- a/src/tscore/ink_file.cc +++ b/src/tscore/ink_file.cc @@ -52,7 +52,7 @@ #include /* for struct hd_geometry */ #endif -#if HAVE_SYS_MOUNT_H +#if __has_include() #include /* for BLKGETSIZE */ #endif