From 2cb1f73737657941a818eac224d7affd7d7edcf0 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 12 Jul 2017 02:41:28 -0400 Subject: [PATCH] Cygwin has mntent.h, and no need to check for CMake tests now. --- src/platform_unix.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/platform_unix.c b/src/platform_unix.c index fac1b9d..aa76a0f 100644 --- a/src/platform_unix.c +++ b/src/platform_unix.c @@ -24,11 +24,13 @@ #include #if PHYSFS_NO_CDROM_SUPPORT -#elif PHYSFS_PLATFORM_LINUX && !defined(PHYSFS_HAVE_MNTENT_H) +#elif PHYSFS_PLATFORM_LINUX # define PHYSFS_HAVE_MNTENT_H 1 -#elif PHYSFS_PLATFORM_SOLARIS && !defined(PHYSFS_HAVE_SYS_MNTTAB_H) +#elif defined __CYGWIN__ +# define PHYSFS_HAVE_MNTENT_H 1 +#elif PHYSFS_PLATFORM_SOLARIS # define PHYSFS_HAVE_SYS_MNTTAB_H 1 -#elif PHYSFS_PLATFORM_BSD && !defined(PHYSFS_HAVE_SYS_UCRED_H) +#elif PHYSFS_PLATFORM_BSD # define PHYSFS_HAVE_SYS_UCRED_H 1 #else # warning No CD-ROM support included. Either define your platform here,