platform/unix.c
changeset 347 56ce50a62241
parent 330 5ca5066cf5ff
child 351 bc4fa7896225
--- a/platform/unix.c	Wed Jul 17 16:05:52 2002 +0000
+++ b/platform/unix.c	Wed Jul 17 23:25:18 2002 +0000
@@ -13,9 +13,15 @@
 /* BeOS uses beos.cpp and posix.c ... Cygwin and such use win32.c ... */
 #if ((!defined __BEOS__) && (!defined WIN32))
 
+#ifdef __FreeBSD__
+#  if (!defined __BSD__)
+#    define __BSD__
+#  endif
+#endif
+
 #if ((defined __APPLE__) && (defined __MACH__))
-#  if (!defined __DARWIN__)
-#    define __DARWIN__
+#  if (!defined __BSD__)
+#    define __BSD__
 #  endif
 #endif
 
@@ -33,10 +39,10 @@
 #include <time.h>
 #include <errno.h>
 
-#if (!defined __DARWIN__)
+#if (defined __BSD__)
+#include <sys/ucred.h>
+#else
 #include <mntent.h>
-#else
-#include <sys/ucred.h>
 #endif
 
 #include <sys/mount.h>
@@ -62,7 +68,7 @@
 
 
 
-#if (defined __DARWIN__)
+#if (defined __BSD__)
 
 char **__PHYSFS_platformDetectAvailableCDs(void)
 {