Darwin fixes.
This commit is contained in:
parent
e663851604
commit
566b6229c9
|
@ -45,13 +45,16 @@
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <mntent.h>
|
|
||||||
#include <sys/mount.h>
|
|
||||||
|
|
||||||
#if (defined __DARWIN__)
|
#if (!defined __DARWIN__)
|
||||||
|
#include <mntent.h>
|
||||||
|
#else
|
||||||
#include <sys/ucred.h>
|
#include <sys/ucred.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <sys/mount.h>
|
||||||
|
|
||||||
|
|
||||||
#define __PHYSICSFS_INTERNAL__
|
#define __PHYSICSFS_INTERNAL__
|
||||||
#include "physfs_internal.h"
|
#include "physfs_internal.h"
|
||||||
|
|
||||||
|
@ -288,7 +291,7 @@ char *__PHYSFS_platformGetUserDir(void)
|
||||||
|
|
||||||
PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
|
PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
|
||||||
{
|
{
|
||||||
return((PHYSFS_uint64) pthread_self());
|
return((PHYSFS_uint64) ((PHYSFS_uint32) pthread_self()));
|
||||||
} /* __PHYSFS_platformGetThreadID */
|
} /* __PHYSFS_platformGetThreadID */
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue