Mercurial > hg > xemacs-beta
diff src/sysdir.h @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | ac2d302a0011 |
children | 74fd4e045ea6 |
line wrap: on
line diff
--- a/src/sysdir.h Mon Aug 13 10:27:41 2007 +0200 +++ b/src/sysdir.h Mon Aug 13 10:28:48 2007 +0200 @@ -20,6 +20,10 @@ /* Synched up with: Not really in FSF. */ +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #ifdef SYSV_SYSTEM_DIR # include <dirent.h> #elif defined (NONSYSTEM_DIR_LIBRARY) @@ -60,7 +64,7 @@ /* encapsulation: directory calls */ #ifdef ENCAPSULATE_CHDIR -extern int sys_chdir (CONST char *path); +int sys_chdir (CONST char *path); #endif #if defined (ENCAPSULATE_CHDIR) && !defined (DONT_ENCAPSULATE) # undef chdir @@ -71,7 +75,7 @@ #endif #ifdef ENCAPSULATE_MKDIR -extern int sys_mkdir (CONST char *path, int mode); +int sys_mkdir (CONST char *path, mode_t mode); #endif #if defined (ENCAPSULATE_MKDIR) && !defined (DONT_ENCAPSULATE) # undef mkdir @@ -82,7 +86,7 @@ #endif #ifdef ENCAPSULATE_OPENDIR -extern DIR *sys_opendir (CONST char *filename); +DIR *sys_opendir (CONST char *filename); #endif #if defined (ENCAPSULATE_OPENDIR) && !defined (DONT_ENCAPSULATE) # undef opendir @@ -93,7 +97,7 @@ #endif #ifdef ENCAPSULATE_READDIR -extern DIRENTRY *sys_readdir (DIR *dirp); +DIRENTRY *sys_readdir (DIR *dirp); #endif #if defined (ENCAPSULATE_READDIR) && !defined (DONT_ENCAPSULATE) # undef readdir @@ -104,7 +108,7 @@ #endif #ifdef ENCAPSULATE_CLOSEDIR -extern int sys_closedir (DIR *dirp); +int sys_closedir (DIR *dirp); #endif #if defined (ENCAPSULATE_CLOSEDIR) && !defined (DONT_ENCAPSULATE) # undef closedir @@ -115,7 +119,7 @@ #endif #ifdef ENCAPSULATE_RMDIR -extern int sys_rmdir (CONST char *path); +int sys_rmdir (CONST char *path); #endif #if defined (ENCAPSULATE_RMDIR) && !defined (DONT_ENCAPSULATE) # undef rmdir