Darwin fixes.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 06 Apr 2002 21:05:14 +0000
changeset 188 41bf2cb44d12
parent 187 1241722f5f28
child 189 ca4758ef298a
Darwin fixes.
platform/unix.c
--- a/platform/unix.c	Sat Apr 06 14:16:47 2002 +0000
+++ b/platform/unix.c	Sat Apr 06 21:05:14 2002 +0000
@@ -45,12 +45,15 @@
 #include <dirent.h>
 #include <time.h>
 #include <errno.h>
+
+#if (!defined __DARWIN__)
 #include <mntent.h>
+#else
+#include <sys/ucred.h>
+#endif
+
 #include <sys/mount.h>
 
-#if (defined __DARWIN__)
-#include <sys/ucred.h>
-#endif
 
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
@@ -288,7 +291,7 @@
 
 PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
 {
-    return((PHYSFS_uint64) pthread_self());
+    return((PHYSFS_uint64) ((PHYSFS_uint32) pthread_self()));
 } /* __PHYSFS_platformGetThreadID */