This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Will this fixincl's on OLD-BSD?
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Subject: Will this fixincl's on OLD-BSD?
- From: Bruce Korb <bkorb at cruzio dot com>
- Date: Thu, 04 Jan 2001 08:24:24 -0800
- CC: bkorb at cruzio dot com
- Organization: Home
- Reply-To: bkorb at cruzio dot com
Index: mkfixinc.sh
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/mkfixinc.sh,v
retrieving revision 1.35
diff -U7 -r1.35 mkfixinc.sh
--- mkfixinc.sh 2000/12/13 20:07:46 1.35
+++ mkfixinc.sh 2001/01/04 16:17:46
@@ -19,14 +19,19 @@
case $build in
i?86-*-msdosdjgpp* | \
*-*-beos* )
MAKE="${MAKE} TARGETS=twoprocess"
CFLAGS="${CFLAGS} -DSEPARATE_FIX_PROC"
;;
+ *-old-bsd* )
+ CFLAGS="${CFLAGS} -Dexit=xexit -Datexit=xatexit"
+ MAKE="${MAKE} TARGETS=oneprocess"
+ ;;
+
* )
MAKE="${MAKE} TARGETS=oneprocess"
;;
esac
# Check for special fix rules for particular targets
case $machine in
Index: fixincl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/fixincl.c,v
retrieving revision 1.48
diff -u -r1.48 fixincl.c
--- fixincl.c 2000/12/13 22:25:21 1.48
+++ fixincl.c 2001/01/04 16:18:02
@@ -184,7 +184,7 @@
# ifdef SEPARATE_FIX_PROC
unlink( pz_temp_file );
# endif
- return EXIT_SUCCESS;
+ exit (EXIT_SUCCESS);
}