summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-05-12 18:27:24 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:29 +0200
commit1b7f58ca2fdd5723525eca2d7c7cc2b2cbf9f733 (patch)
treefc8688dcbbf98d7f6bac4ec4d77f45e25119721b /gettext-tools
parentc1b9ee525b71d204da5e2f7a186b355847e229e5 (diff)
downloadexternal_gettext-1b7f58ca2fdd5723525eca2d7c7cc2b2cbf9f733.zip
external_gettext-1b7f58ca2fdd5723525eca2d7c7cc2b2cbf9f733.tar.gz
external_gettext-1b7f58ca2fdd5723525eca2d7c7cc2b2cbf9f733.tar.bz2
Portability to Woe32.
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/src/ChangeLog5
-rw-r--r--gettext-tools/src/msginit.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog
index 38e7343..52e5bf1 100644
--- a/gettext-tools/src/ChangeLog
+++ b/gettext-tools/src/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-12 Bruno Haible <bruno@clisp.org>
+
+ * msginit.c (F_OK): Provide a fallback value.
+ Reported by Perry Rapp.
+
2003-05-10 Bruno Haible <bruno@clisp.org>
* msgl-iconv.c (iconv_string): Don't return -1 just because the string
diff --git a/gettext-tools/src/msginit.c b/gettext-tools/src/msginit.c
index 2205ddd..c348eaf 100644
--- a/gettext-tools/src/msginit.c
+++ b/gettext-tools/src/msginit.c
@@ -98,6 +98,11 @@
#define _(str) gettext (str)
#define N_(str) (str)
+/* Get F_OK. It is lacking from <fcntl.h> on Woe32. */
+#ifndef F_OK
+# define F_OK 0
+#endif
+
#define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
extern const char * _nl_locale_name (int category, const char *categoryname);