Usermode/libposix - Updates to get curl and netsurf compiled
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / dirent.h
index 4f2c0b3..8eec42a 100644 (file)
@@ -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
 

UCC git Repository :: git.ucc.asn.au