summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-02-27 09:56:47 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-02-27 09:56:47 +0000
commit887b7e6fe2bddfda218b203882c10bbfcbb85ebe (patch)
treed7e835338c21342827167a029a70cf56323412a2 /Build/source
parent64a42b75079ee22c552c4b557d693a58cffd4f19 (diff)
port from new build system
git-svn-id: svn://tug.org/texlive/trunk@12248 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog4
-rw-r--r--Build/source/texk/kpathsea/common.ac2
-rw-r--r--Build/source/texk/kpathsea/xputenv.c6
3 files changed, 8 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 606842e1f9e..44b9c2e0737 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -7,6 +7,10 @@
* tex-file.c: doc fixes.
+2009-02-12 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * xputenv.c: prototype for putenv() if !HAVE_DECL_PUTENV.
+
2009-02-06 Karl Berry <karl@tug.org>
* texmf.cnf (TEXINPUTS.lua*): add definitions for
diff --git a/Build/source/texk/kpathsea/common.ac b/Build/source/texk/kpathsea/common.ac
index 793715a7384..79d0789f750 100644
--- a/Build/source/texk/kpathsea/common.ac
+++ b/Build/source/texk/kpathsea/common.ac
@@ -22,7 +22,7 @@ AC_HEADER_STDC
AC_FUNC_CLOSEDIR_VOID
AC_CHECK_HEADERS([assert.h float.h limits.h memory.h pwd.h stdlib.h \
string.h strings.h sys/param.h unistd.h])
-AC_CHECK_DECLS([strstr])
+AC_CHECK_DECLS([putenv, strstr])
dnl Libtool supporting objects that may be required on ancient broken system.
AC_CHECK_FUNCS(putenv,, LTLIBOBJS="$LTLIBOBJS putenv.lo")
diff --git a/Build/source/texk/kpathsea/xputenv.c b/Build/source/texk/kpathsea/xputenv.c
index 52aa0f44fbf..a42485000b3 100644
--- a/Build/source/texk/kpathsea/xputenv.c
+++ b/Build/source/texk/kpathsea/xputenv.c
@@ -22,9 +22,9 @@
#ifdef WIN32
#include <stdlib.h>
#else
-/* Avoid implicit declaration warning. But since some systems do
- declare it, don't use a prototype, for fear of conflicts. */
-extern int putenv ();
+#if !HAVE_DECL_PUTENV
+extern int putenv P1H(char* entry);
+#endif
#endif /* not WIN32 */
/* These record the strings we've set and have to keep around.