pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/posix_headers/files Disable inlined setenv. T...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9874c022181f
branches: trunk
changeset: 528313:9874c022181f
user: tnn <tnn%pkgsrc.org@localhost>
date: Sat Apr 28 23:33:36 2007 +0000
description:
Disable inlined setenv. This needs more work.
diffstat:
pkgtools/posix_headers/files/stdlib.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 5bdbf877dfec -r 9874c022181f pkgtools/posix_headers/files/stdlib.h
--- a/pkgtools/posix_headers/files/stdlib.h Sat Apr 28 22:07:23 2007 +0000
+++ b/pkgtools/posix_headers/files/stdlib.h Sat Apr 28 23:33:36 2007 +0000
@@ -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 @@
free(c);
return(ret);
}
+#endif /* 0 */
#endif /* __hpux */
#endif /* _PKGSRC_STDLIB_H_ */
Home |
Main Index |
Thread Index |
Old Index