summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-12-12 07:26:13 -0800
committerKaz Kylheku <kaz@kylheku.com>2013-12-12 07:26:13 -0800
commit8e493b2eaf671e962a55e13c17bf42c51a3fd2bd (patch)
tree982c1453e38cfd8226ac3221983cecd863d22210 /configure
parent986d9c78daa61375d23e30ce2441925c27bc4482 (diff)
downloadtxr-8e493b2eaf671e962a55e13c17bf42c51a3fd2bd.tar.gz
txr-8e493b2eaf671e962a55e13c17bf42c51a3fd2bd.tar.bz2
txr-8e493b2eaf671e962a55e13c17bf42c51a3fd2bd.zip
* configure: Fix warnings in test cases for HAVE_FORK_STUFF
and HAVE_DAEMON. * eval.c: daemon support must be wrapped in #if HAVE_DAEMON
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
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 <<!
int main(int argc, char **argv)
{
- daemon(0, 0);
- return 0;
+ return daemon(0, 0);
}
!
rm -f conftest