diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-08-09 23:42:26 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-08-09 23:42:26 +0000 |
commit | 93f90065f31c35780e2dc3d6b7c987677d9bc14e (patch) | |
tree | ba198c539d289ba716e4de9f420e58a61e214a84 /lib/setenv.c | |
parent | d24265f9659d21c8e89f1f21cf3b774c7c120afe (diff) | |
download | coreutils-93f90065f31c35780e2dc3d6b7c987677d9bc14e.tar.xz |
Sync from gnulib.
Diffstat (limited to 'lib/setenv.c')
-rw-r--r-- | lib/setenv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/setenv.c b/lib/setenv.c index 1cbe1a25b..335d1d2f9 100644 --- a/lib/setenv.c +++ b/lib/setenv.c @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include <config.h> @@ -27,7 +27,9 @@ #include <stdlib.h> #include <string.h> -#include <unistd.h> +#if _LIBC || HAVE_UNISTD_H +# include <unistd.h> +#endif #if !_LIBC # include "allocsa.h" |