Преглед изворни кода

I think sys/mount.h is only needed in the ucred.h path.

Fixes building on hurd, I think.
Ryan C. Gordon пре 17 година
родитељ
комит
94d1b71e49
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/platform_unix.c

+ 1 - 1
src/platform_unix.c

@@ -23,7 +23,6 @@
 #include <dirent.h>
 #include <dirent.h>
 #include <time.h>
 #include <time.h>
 #include <errno.h>
 #include <errno.h>
-#include <sys/mount.h>
 
 
 #if (!defined PHYSFS_NO_PTHREADS_SUPPORT)
 #if (!defined PHYSFS_NO_PTHREADS_SUPPORT)
 #include <pthread.h>
 #include <pthread.h>
@@ -33,6 +32,7 @@
 #  ifdef PHYSFS_HAVE_MNTENT_H
 #  ifdef PHYSFS_HAVE_MNTENT_H
 #    undef PHYSFS_HAVE_MNTENT_H /* don't do both... */
 #    undef PHYSFS_HAVE_MNTENT_H /* don't do both... */
 #  endif
 #  endif
+#  include <sys/mount.h>
 #  include <sys/ucred.h>
 #  include <sys/ucred.h>
 #endif
 #endif