X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibposix.so_src%2Finclude_exp%2Fdirent.h;h=8eec42abcca2cd5a049a5789bc97559af28f7377;hb=4e407e69bd660e9a32644281733192193ee6e8c8;hp=4f2c0b30869c039ea69e615501e365999f4e755a;hpb=d0b4559f2936f6d9f06be0f7c3c51527a480ec0d;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libposix.so_src/include_exp/dirent.h b/Usermode/Libraries/libposix.so_src/include_exp/dirent.h index 4f2c0b30..8eec42ab 100644 --- a/Usermode/Libraries/libposix.so_src/include_exp/dirent.h +++ b/Usermode/Libraries/libposix.so_src/include_exp/dirent.h @@ -8,6 +8,12 @@ #ifndef _LIBPOSIX__SYS__DIRENT_H_ #define _LIBPOSIX__SYS__DIRENT_H_ +#include "sys/stat.h" + +#ifdef __cplusplus +extern "C" { +#endif + #define NAME_MAX 255 struct dirent @@ -18,13 +24,17 @@ struct dirent typedef struct DIR_s DIR; -extern int closedir(DIR *); extern DIR *opendir(const char *); +extern int closedir(DIR *); extern struct dirent *readdir(DIR *); extern int readdir_r(DIR *, struct dirent *, struct dirent **); extern void rewinddir(DIR *); extern void seekdir(DIR *, long int); extern long int telldir(DIR *); +#ifdef __cplusplus +} +#endif + #endif