Fix for the Hurd, from the debian project. stable-2.0
authorRyan C. Gordon <icculus@icculus.org>
Mon, 15 Mar 2010 09:44:34 -0400
branchstable-2.0
changeset 1061 8b05539d6660
parent 1057 8a4f3c87d6b5
child 1068 a94dfe3d3121
Fix for the Hurd, from the debian project.
platform/unix.c
--- a/platform/unix.c	Sun Feb 28 17:22:43 2010 -0500
+++ b/platform/unix.c	Mon Mar 15 09:44:34 2010 -0400
@@ -23,7 +23,6 @@
 #include <dirent.h>
 #include <time.h>
 #include <errno.h>
-#include <sys/mount.h>
 
 #if (!defined PHYSFS_NO_THREAD_SUPPORT)
 #include <pthread.h>
@@ -34,6 +33,7 @@
 #    undef PHYSFS_HAVE_MNTENT_H /* don't do both... */
 #  endif
 #  include <sys/ucred.h>
+#  include <sys/mount.h>
 #endif
 
 #ifdef PHYSFS_HAVE_MNTENT_H
@@ -42,6 +42,9 @@
 
 #include "physfs_internal.h"
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024
+#endif
 
 int __PHYSFS_platformInit(void)
 {