platform/unix.c
changeset 188 41bf2cb44d12
parent 171 0d92d6358410
child 191 0b95b9fd25e3
equal deleted inserted replaced
187:1241722f5f28 188:41bf2cb44d12
    43 #include <sys/stat.h>
    43 #include <sys/stat.h>
    44 #include <sys/param.h>
    44 #include <sys/param.h>
    45 #include <dirent.h>
    45 #include <dirent.h>
    46 #include <time.h>
    46 #include <time.h>
    47 #include <errno.h>
    47 #include <errno.h>
       
    48 
       
    49 #if (!defined __DARWIN__)
    48 #include <mntent.h>
    50 #include <mntent.h>
    49 #include <sys/mount.h>
    51 #else
    50 
       
    51 #if (defined __DARWIN__)
       
    52 #include <sys/ucred.h>
    52 #include <sys/ucred.h>
    53 #endif
    53 #endif
       
    54 
       
    55 #include <sys/mount.h>
       
    56 
    54 
    57 
    55 #define __PHYSICSFS_INTERNAL__
    58 #define __PHYSICSFS_INTERNAL__
    56 #include "physfs_internal.h"
    59 #include "physfs_internal.h"
    57 
    60 
    58 
    61 
   286 } /* __PHYSFS_platformGetUserDir */
   289 } /* __PHYSFS_platformGetUserDir */
   287 
   290 
   288 
   291 
   289 PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
   292 PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
   290 {
   293 {
   291     return((PHYSFS_uint64) pthread_self());
   294     return((PHYSFS_uint64) ((PHYSFS_uint32) pthread_self()));
   292 } /* __PHYSFS_platformGetThreadID */
   295 } /* __PHYSFS_platformGetThreadID */
   293 
   296 
   294 
   297 
   295 /* -ansi and -pedantic flags prevent use of strcasecmp() on Linux. */
   298 /* -ansi and -pedantic flags prevent use of strcasecmp() on Linux. */
   296 int __PHYSFS_platformStricmp(const char *x, const char *y)
   299 int __PHYSFS_platformStricmp(const char *x, const char *y)