summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2007-04-28 23:33:36 +0000
committertnn <tnn@pkgsrc.org>2007-04-28 23:33:36 +0000
commit1103d467171fd586ae928da00e089992d7f5d5e0 (patch)
tree08a0aa0eb117746d4efe67832130c8c75b8a960d /pkgtools
parent1e66d7c6990be4cad457839ca0e14e991cc9a875 (diff)
downloadpkgsrc-1103d467171fd586ae928da00e089992d7f5d5e0.tar.gz
Disable inlined setenv. This needs more work.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/posix_headers/files/stdlib.h10
1 files changed, 8 insertions, 2 deletions
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 <inttypes.h>
#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 <string.h>
#include <stdio.h>
-/* 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_ */