X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=posix.h;h=6ab9a7f173483e254f0f07d9c117af692f741f21;hb=be3677f1867cef839334e7746ea1c8205ec73c8c;hp=257c27f7c82c363673e73b926252cb2c96c02f8d;hpb=7167e5f3376f0d0692ae102ed2df1ef5d2cc199a;p=libpicofe.git diff --git a/posix.h b/posix.h index 257c27f..6ab9a7f 100644 --- a/posix.h +++ b/posix.h @@ -2,7 +2,7 @@ #define LIBPICOFE_POSIX_H /* define POSIX stuff: dirent, scandir, getcwd, mkdir */ -#if defined(__MACH__) || defined(__linux__) || defined(__MINGW32__) +#if defined(__FreeBSD__) || defined(__MACH__) || defined(__linux__) || defined(__MINGW32__) #include #include @@ -23,12 +23,14 @@ #include #include +#ifndef DT_DIR /* map PSP names to posix. needs special scandir() function to mask rwx bits */ #define d_type d_stat.st_attr #define DT_LNK FIO_SO_IFLNK #define DT_DIR FIO_SO_IFDIR #define DT_REG FIO_SO_IFREG #define DT_UNKNOWN 0 +#endif #else