diff options
-rw-r--r-- | command.c | 6 | ||||
-rw-r--r-- | configure.ac | 3 |
2 files changed, 6 insertions, 3 deletions
@@ -40,10 +40,10 @@ /* number of user input events to queue before malloc */ #define TYPEAHEADSIZE 20 -#ifndef HAS_VFORK -#define vfork() fork() +#ifndef HAVE_WORKING_VFORK +#define vfork fork #else -#if defined(sun) && !defined(SVR4) +#ifdef HAVE_VFORK_H #include <vfork.h> #endif #endif diff --git a/configure.ac b/configure.ac index 88d9383..1ed2a1b 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,9 @@ AC_ARG_WITH(appdefaultdir, [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) AC_SUBST(appdefaultdir) +# Checks for library functions. +AC_FUNC_FORK + AC_CONFIG_FILES([ Makefile man/Makefile]) |