commit d04caf5aa343d6f2c9c130bd9e8975e18577d127
parent 9bd80ebaacc3b7aedb2bc39ea4792e7bafccc975
Author: ukai <ukai>
Date: Wed, 6 Mar 2002 03:32:10 +0000
* version.c.in: 0.3+cvs
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
6 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,14 @@
+2002-03-06 Christian Weisgerber <w3m-dev-en@mips.inka.de>
+
+ * [w3m-dev-en 00699]
+ * configure: define SETPGRP() instead of setpgrp()
+ * etc.c (mySystem): use SETPGRP() instead of setpgrp()
+ * image.c (openImgdisplay): ditto
+ * search.c (open_migemo): ditto
+ * url.c: revert changes by Dai Sato on 2002-02-01
+ since stdio.h and config.h is included with this order
+ in fm.h
+
2002-03-06 Fumitoshi UKAI <ukai@debian.or.jp>
* version.c.in: 0.3+cvs
diff --git a/configure b/configure
@@ -1795,6 +1795,7 @@ if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1
then
echo "You have setpgrp()."
def_have_setpgrp='#define HAVE_SETPGRP'
+ def_setpgrp='#define SETPGRP() setpgrp()'
else
cat > _zmachdep.c << EOF
#include <unistd.h>
@@ -1808,7 +1809,7 @@ EOF
then
echo "You have setpgrp( pid, pgrp )."
def_have_setpgrp='#define HAVE_SETPGRP'
- def_setpgrp='#define setpgrp() setpgrp( 0, 0 )'
+ def_setpgrp='#define SETPGRP() setpgrp( 0, 0 )'
else
def_have_setpgrp=''
fi
diff --git a/etc.c b/etc.c
@@ -1075,7 +1075,7 @@ mySystem(char *command, int background)
flush_tty();
if ((pid = fork()) == 0) {
reset_signals();
- setpgrp();
+ SETPGRP();
close_tty();
fclose(stdout);
fclose(stderr);
diff --git a/image.c b/image.c
@@ -106,7 +106,7 @@ openImgdisplay()
reset_signals();
signal(SIGINT, SIG_IGN);
#ifdef HAVE_SETPGRP
- setpgrp();
+ SETPGRP();
#endif
close_tty();
close(fdr[0]);
diff --git a/search.c b/search.c
@@ -52,7 +52,7 @@ open_migemo(char *migemo_command)
/* child */
reset_signals();
#ifdef HAVE_SETPGRP
- setpgrp();
+ SETPGRP();
#endif
close_tty();
close(fdr[0]);
diff --git a/url.c b/url.c
@@ -1,6 +1,4 @@
/* $Id$ */
-#include <stdio.h>
-#include "config.h"
#include "fm.h"
#include <sys/types.h>
#include <sys/socket.h>