Subject: defining POSIX when building gcc?
To: None <tech-toolchain@netbsd.org>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
List: tech-toolchain
Date: 08/09/1999 20:59:15
Currently, when you link gcc, you get the following warning:

cc   -o cc1 c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o c-parse.o c-lang.o /usr/src/gnu/usr.bin/egcs/common/obj.i386/libcc1.a -lgnumalloc
getpwd.o: warning: getwd() possibly used unsafely, consider using getcwd()

Now, if bits of gcc were built -DPOSIX, this wouldn't happen.

Any objections to applying the following patch to
src/gnu/usr.bin/egcs/arch/config.h?

--- config.h	1998/08/17 03:47:50	1.3
+++ config.h	1999/08/10 00:58:34
@@ -1,4 +1,6 @@
 /*	$NetBSD: config.h,v 1.3 1998/08/17 03:47:50 tv Exp $	*/
 
+#define POSIX
+
 #include "auto-host.h"
 #include "tconfig.h"

					- Bill