diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-08-07 20:01:29 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-08-07 20:01:29 -0700 |
commit | 5c1463104d59237000263dc6f682715f0b2abe3e (patch) | |
tree | 8faeaff0dde19eb893f9fa60b21e18eb8e8e7ee4 /configure | |
parent | c293139b066d728ad68d48dfe25292e72621645d (diff) | |
download | txr-5c1463104d59237000263dc6f682715f0b2abe3e.tar.gz txr-5c1463104d59237000263dc6f682715f0b2abe3e.tar.bz2 txr-5c1463104d59237000263dc6f682715f0b2abe3e.zip |
No getppid on MinGW.
* configure: Add test for getppid.
* eval.c (getppid_wrap, eval_init): use HAVE_GETPPID
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -1406,6 +1406,27 @@ else printf "no\n" fi +printf "Checking for POSIX getppid ... " + +cat > conftest.c <<! +#include <sys/types.h> +#include <unistd.h> + +int main(int argc, char **argv) +{ + pid_t p = getppid(); + return 0; +} +! + +if conftest ; then + printf "yes\n" + printf "#define HAVE_GETPPID 1\n" >> config.h + have_unistd=y +else + printf "no\n" +fi + # # fcntl # |