summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-04-04 10:36:33 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:20 +0200
commitc7908142b820046406ed65fc2207b998c7c349c7 (patch)
tree510fbf80f1148dd85dc2d358022f4191e39a1e99
parent6ff07a79ca1d726c1f9467e9a84a1b217399f6b7 (diff)
downloadexternal_gettext-c7908142b820046406ed65fc2207b998c7c349c7.zip
external_gettext-c7908142b820046406ed65fc2207b998c7c349c7.tar.gz
external_gettext-c7908142b820046406ed65fc2207b998c7c349c7.tar.bz2
Include tweak.
-rw-r--r--gettext-tools/lib/ChangeLog4
-rw-r--r--gettext-tools/lib/xgetcwd.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog
index a49e167..8546ea7 100644
--- a/gettext-tools/lib/ChangeLog
+++ b/gettext-tools/lib/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-30 Bruno Haible <bruno@clisp.org>
+
+ * xgetcwd.c: Include <unistd.h>.
+
2003-04-03 Bruno Haible <bruno@clisp.org>
* w32spawn.h (dup_noinherit): Signal an error instead of returning -1.
diff --git a/gettext-tools/lib/xgetcwd.c b/gettext-tools/lib/xgetcwd.c
index 401f080..64b5338 100644
--- a/gettext-tools/lib/xgetcwd.c
+++ b/gettext-tools/lib/xgetcwd.c
@@ -1,5 +1,5 @@
/* xgetcwd.c -- return current directory with unlimited length
- Copyright (C) 1992, 1996, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1996, 2000, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -29,6 +29,10 @@ extern int errno;
#endif
#include <sys/types.h>
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
#include "pathmax.h"
#if HAVE_GETCWD