diff --git a/platform/unix.c b/platform/unix.c index fd0a745..027600f 100644 --- a/platform/unix.c +++ b/platform/unix.c @@ -45,13 +45,16 @@ #include #include #include -#include -#include -#if (defined __DARWIN__) +#if (!defined __DARWIN__) +#include +#else #include #endif +#include + + #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" @@ -288,7 +291,7 @@ char *__PHYSFS_platformGetUserDir(void) PHYSFS_uint64 __PHYSFS_platformGetThreadID(void) { - return((PHYSFS_uint64) pthread_self()); + return((PHYSFS_uint64) ((PHYSFS_uint32) pthread_self())); } /* __PHYSFS_platformGetThreadID */