From 698517be481301b4525c29873134a67b8343af3c Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 9 Dec 2010 18:56:03 +0200 Subject: pull in more code from PicoDrive --- frontend/common/posix.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 frontend/common/posix.h (limited to 'frontend/common/posix.h') diff --git a/frontend/common/posix.h b/frontend/common/posix.h new file mode 100644 index 0000000..33ca96c --- /dev/null +++ b/frontend/common/posix.h @@ -0,0 +1,23 @@ +/* define POSIX stuff: dirent, scandir, getcwd, mkdir */ +#if defined(__linux__) || defined(__MINGW32__) + +#include +#include +#include +#include + +#ifdef __MINGW32__ +#warning hacks! +#define mkdir(pathname,mode) mkdir(pathname) +#define d_type d_ino +#define DT_REG 0 +#define DT_DIR 0 +#endif + +#else + +#error "must provide posix" + +#endif + + -- cgit v1.2.3