src/platform_unix.c
changeset 1236 ad779490c5b6
parent 1230 ca5575b87b22
child 1240 22d4d1bd4e21
equal deleted inserted replaced
1235:2ed0567fe413 1236:ad779490c5b6
    18 #include <sys/stat.h>
    18 #include <sys/stat.h>
    19 #include <sys/param.h>
    19 #include <sys/param.h>
    20 #include <dirent.h>
    20 #include <dirent.h>
    21 #include <time.h>
    21 #include <time.h>
    22 #include <errno.h>
    22 #include <errno.h>
       
    23 
       
    24 #if PHYSFS_PLATFORM_LINUX && !defined(PHYSFS_HAVE_MNTENT_H)
       
    25 #define PHYSFS_HAVE_MNTENT_H 1
       
    26 #elif PHYSFS_PLATFORM_SOLARIS && !defined(PHYSFS_HAVE_SYS_MNTTAB_H)
       
    27 #define PHYSFS_HAVE_SYS_MNTTAB_H 1
       
    28 #elif PHYSFS_PLATFORM_BSD && !defined(PHYSFS_HAVE_SYS_UCRED_H)
       
    29 #define PHYSFS_HAVE_SYS_UCRED_H 1
       
    30 #endif
    23 
    31 
    24 #ifdef PHYSFS_HAVE_SYS_UCRED_H
    32 #ifdef PHYSFS_HAVE_SYS_UCRED_H
    25 #  ifdef PHYSFS_HAVE_MNTENT_H
    33 #  ifdef PHYSFS_HAVE_MNTENT_H
    26 #    undef PHYSFS_HAVE_MNTENT_H /* don't do both... */
    34 #    undef PHYSFS_HAVE_MNTENT_H /* don't do both... */
    27 #  endif
    35 #  endif