From 1103d467171fd586ae928da00e089992d7f5d5e0 Mon Sep 17 00:00:00 2001 From: tnn Date: Sat, 28 Apr 2007 23:33:36 +0000 Subject: Disable inlined setenv. This needs more work. --- pkgtools/posix_headers/files/stdlib.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/posix_headers/files/stdlib.h b/pkgtools/posix_headers/files/stdlib.h index edc4fb54cfb..bdec28cec45 100644 --- a/pkgtools/posix_headers/files/stdlib.h +++ b/pkgtools/posix_headers/files/stdlib.h @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.2 2007/04/28 21:25:06 tnn Exp $ */ +/* $NetBSD: stdlib.h,v 1.3 2007/04/28 23:33:36 tnn Exp $ */ #ifndef _PKGSRC_STDLIB_H_ #define _PKGSRC_STDLIB_H_ #include "@REAL_HEADER@" @@ -7,9 +7,14 @@ #include #define strtoll __strtoll #define strtoull __strtoull +/* provide a setenv(3) implementation */ +#if 0 +/* + * XXX: disabled because some GNU configure scripts don't pick this up, + * they look for the symbol in the c library. A better solution is needed. + */ #include #include -/* provide a setenv(3) implementation */ static __inline int setenv(const char *name, const char *value, int overwrite); static __inline int setenv(const char *name, const char *value, int overwrite) { char *c; @@ -22,5 +27,6 @@ static __inline int setenv(const char *name, const char *value, int overwrite) { free(c); return(ret); } +#endif /* 0 */ #endif /* __hpux */ #endif /* _PKGSRC_STDLIB_H_ */ -- cgit v1.2.3