Darwin patches.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 06 Apr 2002 23:49:17 +0000
changeset 191 0b95b9fd25e3
parent 190 1fd28b57df47
child 192 8777e3f08724
Darwin patches.
platform/unix.c
test/test_physfs.c
--- a/platform/unix.c	Sat Apr 06 23:49:07 2002 +0000
+++ b/platform/unix.c	Sat Apr 06 23:49:17 2002 +0000
@@ -94,6 +94,8 @@
 
         if ( strcmp( mntbufp[ii].f_fstypename, "iso9660") == 0 )
             add_it = 1;
+        else if ( strcmp( mntbufp[ii].f_fstypename, "cd9660") == 0 )
+            add_it = 1;
         /* !!! other mount types? */
 
         if (add_it)
--- a/test/test_physfs.c	Sat Apr 06 23:49:07 2002 +0000
+++ b/test/test_physfs.c	Sat Apr 06 23:49:17 2002 +0000
@@ -15,7 +15,13 @@
 #include <SIOUX.h>
 #endif
 
-#if ((!defined WIN32) && (!defined __MACOS__))
+#if ((defined __APPLE__) && (defined __MACH__))
+#  if (!defined __DARWIN__)
+#    define __DARWIN__
+#  endif
+#endif
+
+#if ((!defined WIN32) && (!defined __MACOS__) && (!defined __DARWIN__))
 #define HAVE_READLINE
 #endif