From 8e493b2eaf671e962a55e13c17bf42c51a3fd2bd Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 12 Dec 2013 07:26:13 -0800 Subject: * configure: Fix warnings in test cases for HAVE_FORK_STUFF and HAVE_DAEMON. * eval.c: daemon support must be wrapped in #if HAVE_DAEMON --- ChangeLog | 7 +++++++ configure | 6 +++--- eval.c | 4 ++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6b8c3d8d..cbe6ba62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-12-12 Kaz Kylheku + + * configure: Fix warnings in test cases for HAVE_FORK_STUFF + and HAVE_DAEMON. + + * eval.c: daemon support must be wrapped in #if HAVE_DAEMON + 2013-12-11 Kaz Kylheku * txr.c (txr_main): Change stderr to line buffered mode. diff --git a/configure b/configure index add43f30..52a24b5b 100755 --- a/configure +++ b/configure @@ -1235,9 +1235,10 @@ int main(int argc, char **argv) { int status, fd[2]; pid_t p = fork(); + int res = pipe(fd); (void) execvp(argv[0], argv); (void) waitpid(p, &status, 0); - (void) pipe(fd); + (void) res; return 0; } ! @@ -1377,8 +1378,7 @@ cat > conftest.c <