mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-04 22:47:44 -04:00
add minimal PSP support
This commit is contained in:
parent
a23a278d1e
commit
dfe767a5fa
1 changed files with 13 additions and 0 deletions
13
posix.h
13
posix.h
|
@ -17,6 +17,19 @@
|
|||
#define DT_DIR 0
|
||||
#endif
|
||||
|
||||
#elif defined(__PSP__)
|
||||
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* 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
|
||||
|
||||
#else
|
||||
|
||||
#error "must provide posix"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue