diff options
author | Jim Meyering <jim@meyering.net> | 2001-11-18 10:54:42 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-11-18 10:54:42 +0000 |
commit | 16aa74d9d2386e48243af040fd3de9350d257a77 (patch) | |
tree | e86b6cddccbee33237a402f2b38c541501255f8c /lib | |
parent | c59588ce72057e93505de20d3c5c444f0ee66611 (diff) | |
download | coreutils-16aa74d9d2386e48243af040fd3de9350d257a77.tar.xz |
[!HAVE_DECL_GETENV]: Declare getenv to avoid warning on SunOS4.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tempname.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/tempname.c b/lib/tempname.c index 5ead95ea3..0c9853e3b 100644 --- a/lib/tempname.c +++ b/lib/tempname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1991-1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -105,6 +105,13 @@ #if ! (HAVE___SECURE_GETENV || _LIBC) # define __secure_getenv getenv + +# ifndef HAVE_DECL_GETENV +"this configure-time declaration test was not run" +# endif +# if !HAVE_DECL_GETENV +char *getenv (); +# endif #endif /* Use the widest available unsigned type if uint64_t is not |