summaryrefslogtreecommitdiff
path: root/m4/putenv.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-04-24 07:40:00 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-04-24 07:40:00 +0000
commit779532f5567bf44c5e7eb4742fea7de80d1f7719 (patch)
tree4845339878bafc15803aaafa7ba50293e5637280 /m4/putenv.m4
parent79aba863ce1e9ce1bb8d7e852204806689f71a7c (diff)
downloadcoreutils-779532f5567bf44c5e7eb4742fea7de80d1f7719.tar.xz
Don't assume that 'exit' is declared for us.
Don't assume that you can exit with status -1. (import from gnulib)
Diffstat (limited to 'm4/putenv.m4')
-rw-r--r--m4/putenv.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/m4/putenv.m4 b/m4/putenv.m4
index c913e27e6..04556b928 100644
--- a/m4/putenv.m4
+++ b/m4/putenv.m4
@@ -1,5 +1,5 @@
-# putenv.m4 serial 10
-dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# putenv.m4 serial 11
+dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -17,17 +17,17 @@ AC_DEFUN([gl_FUNC_PUTENV],
{
/* Put it in env. */
if (putenv ("CONFTEST_putenv=val"))
- exit (1);
+ return 1;
/* Try to remove it. */
if (putenv ("CONFTEST_putenv"))
- exit (1);
+ return 1;
/* Make sure it was deleted. */
if (getenv ("CONFTEST_putenv") != 0)
- exit (1);
+ return 1;
- exit (0);
+ return 0;
}
],
jm_cv_func_svid_putenv=yes,