Skip to content

Commit

Permalink
Darwin fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 6, 2002
1 parent e663851 commit 566b622
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions platform/unix.c
Expand Up @@ -45,13 +45,16 @@
#include <dirent.h>
#include <time.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>
#endif

#include <sys/mount.h>


#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down Expand Up @@ -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 */


Expand Down

0 comments on commit 566b622

Please sign in to comment.