summaryrefslogtreecommitdiff
path: root/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-sys-dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-sys-dirent.h')
-rw-r--r--devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-sys-dirent.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-sys-dirent.h b/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-sys-dirent.h
new file mode 100644
index 000000000000..f9b494baab42
--- /dev/null
+++ b/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-sys-dirent.h
@@ -0,0 +1,42 @@
+--- newlib/libc/sys/psp/sys/dirent.h.orig 1970-01-01 02:00:00.000000000 +0200
++++ newlib/libc/sys/psp/sys/dirent.h 2007-06-01 12:22:26.000000000 +0300
+@@ -0,0 +1,39 @@
++#ifndef _SYS_DIRENT_H
++#define _SYS_DIRENT_H
++
++/* PSP dirent.h, based on pspiofilemgr_dirent.h
++ by Jim Paris <jim@jtan.com> */
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++#include <pspiofilemgr_dirent.h>
++
++#define MAXNAMLEN 255
++
++/* Same as SceIoDirent, just with a different name. */
++struct dirent {
++ /** File status. */
++ SceIoStat d_stat;
++ /** File name. */
++ char d_name[256];
++ /** Device-specific data. */
++ void * d_private;
++ int dummy;
++};
++
++typedef struct {
++ SceUID uid;
++ struct dirent de;
++} DIR;
++
++DIR *opendir (const char *);
++struct dirent *readdir (DIR *);
++int closedir (DIR *);
++
++#ifdef __cplusplus
++}
++#endif
++
++#endif