/* System stuff for GNU sources */ #ifndef SYSTEM_H #define SYSTEM_H #ifdef _WINDOWS #include "vars-win32.h" #endif #include #include #include #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #include #ifndef errno extern int errno; #endif #ifdef STDC_HEADERS #define getopt system_getopt /*@-skipansiheaders@*/ #include /*@=skipansiheaders@*/ #undef getopt #else /* not STDC_HEADERS */ char *getenv (const char *name); #endif /* STDC_HEADERS */ #if TIME_WITH_SYS_TIME # include # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #ifndef IGNORE_GLOB #include "glob.h" #include "fnmatch.h" #endif #ifdef HAVE_DIRENT_H # include # define NLENGTH(direct) (strlen((direct)->d_name)) #else /* not HAVE_DIRENT_H */ # define dirent direct # define NLENGTH(direct) ((direct)->d_namlen) # ifdef HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # ifdef HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # ifdef HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ #endif /* SYSTEM_H */