From f7d6f275cb3880d519f8fe8016bfaa787c293a2b Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Tue, 28 Apr 2015 17:12:59 -0400 Subject: finish header cleaning on linux anway. need to test other platforms now --- config.h.cmake | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'config.h.cmake') diff --git a/config.h.cmake b/config.h.cmake index d83aa9d5..78212a9e 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -117,6 +117,18 @@ /* Define to 1 if you have the `unsetenv' function. */ #cmakedefine HAVE_UNSETENV 1 +/* Define to 1 if you have the `waitpid' function. */ +#cmakedefine HAVE_WAITPID 1 + +/* Define to 1 if you have the `fork' function. */ +#cmakedefine HAVE_FORK 1 + +/* Define to 1 if you have the `getpwent' function. */ +#cmakedefine HAVE_GETPWENT 1 + +/* Define to 1 if you have the `unlink' function. */ +#cmakedefine HAVE_UNLINK 1 + /* Define to 1 if you have the header file. */ #cmakedefine HAVE_WCTYPE_H 1 @@ -192,6 +204,12 @@ typedef int pid_t; /* whether we have ICU DANGI calendar */ #cmakedefine HAVE_ICU_DANGI +/* getpwent - function to get password file entry */ +#if defined(HAVE_GETPWENT) +#include +#include +#endif + /* strcasecmp: String compare, case independent */ #if !defined(HAVE_STRCASECMP) #if defined(HAVE_STRICMP) @@ -287,6 +305,26 @@ typedef int pid_t; #endif #endif +/* fork - system function to create a child process */ +#if defined(HAVE_FORK) +#if defined(HAVE_UNISTD_H) +#include +#endif +#endif + +/* waitpid - system function waiting on a process */ +#if defined(HAVE_WAITPID) +#include +#include +#endif + +/* unlink - system function to delete a file */ +#if defined(HAVE_UNLINK) +#if defined(HAVE_UNISTD_H) +#include +#endif +#endif + /* define MAXPATHLEN */ #if defined(_WIN32) #include //for MAX_PATH -- cgit v1.2.1