]> git.pld-linux.org Git - packages/crossmingw32-gettext.git/blame - crossmingw32-gettext.patch
- updated to 0.13.1
[packages/crossmingw32-gettext.git] / crossmingw32-gettext.patch
CommitLineData
6a3f6222 1diff -uNr gettext-0.12.1/gettext-runtime/intl/relocatable.c gettext-0.12.1.good/gettext-runtime/intl/relocatable.c
2--- gettext-0.12.1/gettext-runtime/intl/relocatable.c 2003-04-07 12:42:24.000000000 +0200
3+++ gettext-0.12.1.good/gettext-runtime/intl/relocatable.c 2003-08-26 14:32:46.000000000 +0200
4@@ -38,6 +38,9 @@
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8+#include <windef.h>
9+#include <wtypes.h>
10+#include <winbase.h>
11
12 #ifdef NO_XMALLOC
13 # define xmalloc malloc
14diff -uNr gettext-0.12.1/gettext-tools/lib/canonicalize.c gettext-0.12.1.good/gettext-tools/lib/canonicalize.c
15--- gettext-0.12.1/gettext-tools/lib/canonicalize.c 2003-05-09 12:12:06.000000000 +0200
16+++ gettext-0.12.1.good/gettext-tools/lib/canonicalize.c 2003-08-26 15:22:31.000000000 +0200
17@@ -46,6 +46,7 @@
18 #endif
19
20 #include <sys/stat.h>
21+#define lstat stat
22
23 #include <errno.h>
24 #ifndef _LIBC
25diff -uNr gettext-0.12.1/gettext-tools/lib/Makefile.am gettext-0.12.1.good/gettext-tools/lib/Makefile.am
26--- gettext-0.12.1/gettext-tools/lib/Makefile.am 2003-05-12 21:17:23.000000000 +0200
27+++ gettext-0.12.1.good/gettext-tools/lib/Makefile.am 2003-08-26 15:28:48.000000000 +0200
28@@ -45,7 +45,6 @@
457e3721 29 fstrcmp.h fstrcmp.c \
30 full-write.h full-write.c \
31 gcd.h gcd.c \
32- getopt.h getopt.c getopt1.c \
33 hash.h hash.c \
34 javacomp.h javacomp.c \
35 javaexec.h javaexec.c \
6a3f6222 36diff -uNr gettext-0.12.1/gettext-tools/lib/mkdtemp.c gettext-0.12.1.good/gettext-tools/lib/mkdtemp.c
37--- gettext-0.12.1/gettext-tools/lib/mkdtemp.c 2003-01-14 14:36:07.000000000 +0100
38+++ gettext-0.12.1.good/gettext-tools/lib/mkdtemp.c 2003-08-26 15:08:12.000000000 +0200
39@@ -167,7 +167,7 @@
40 v /= 62;
41 XXXXXX[5] = letters[v % 62];
42
43- fd = __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR);
44+ fd = __mkdir (tmpl);
45
46 if (fd >= 0)
47 {
48diff -uNr gettext-0.12.1/gettext-tools/lib/relocatable.c gettext-0.12.1.good/gettext-tools/lib/relocatable.c
49--- gettext-0.12.1/gettext-tools/lib/relocatable.c 2003-04-07 12:42:24.000000000 +0200
50+++ gettext-0.12.1.good/gettext-tools/lib/relocatable.c 2003-08-26 14:08:11.000000000 +0200
51@@ -38,6 +38,8 @@
52 #include <stdio.h>
53 #include <stdlib.h>
54 #include <string.h>
55+#include <windef.h>
56+#include <winbase.h>
57
58 #ifdef NO_XMALLOC
59 # define xmalloc malloc
60diff -uNr gettext-0.12.1/gettext-tools/lib/xreadlink.c gettext-0.12.1.good/gettext-tools/lib/xreadlink.c
61--- gettext-0.12.1/gettext-tools/lib/xreadlink.c 2003-02-28 13:19:46.000000000 +0100
62+++ gettext-0.12.1.good/gettext-tools/lib/xreadlink.c 2003-08-26 15:14:40.000000000 +0200
6a3f6222 63@@ -66,6 +68,11 @@
64 If realloc fails, or if the link value is longer than SIZE_MAX :-),
65 give a diagnostic and exit. */
66
67+int readlink(const char *path, char *buf, size_t bufsiz)
68+{
69+ return -1;
70+}
71+
72 char *
73 xreadlink (char const *filename)
74 {
75diff -uNr gettext-0.12.1/gettext-tools/src/Makefile.am gettext-0.12.1.good/gettext-tools/src/Makefile.am
76--- gettext-0.12.1/gettext-tools/src/Makefile.am 2003-04-29 12:05:37.000000000 +0200
77+++ gettext-0.12.1.good/gettext-tools/src/Makefile.am 2003-08-26 20:52:28.000000000 +0200
78@@ -25,7 +25,7 @@
79 RM = rm -f
80
81 bin_PROGRAMS = \
82-msgcmp msgfmt msgmerge msgunfmt xgettext \
83+msgcmp msgmerge msgunfmt xgettext \
84 msgattrib msgcat msgcomm msgconv msgen msgexec msgfilter msggrep msginit msguniq
85
86 noinst_PROGRAMS = hostname urlget
87diff -uNr gettext-0.12.1/gettext-tools/src/write-java.c gettext-0.12.1.good/gettext-tools/src/write-java.c
88--- gettext-0.12.1/gettext-tools/src/write-java.c 2003-04-29 12:04:04.000000000 +0200
89+++ gettext-0.12.1.good/gettext-tools/src/write-java.c 2003-08-26 15:43:07.000000000 +0200
90@@ -1130,7 +1130,7 @@
91 for (i = 0; i < ndots; i++)
92 {
93 cleanup_list.subdir_count = i + 1;
94- if (mkdir (subdirs[i], S_IRUSR | S_IWUSR | S_IXUSR) < 0)
95+ if (mkdir (subdirs[i]) < 0)
96 {
97 error (0, errno, _("failed to create \"%s\""), subdirs[i]);
98 while (i-- > 0)
99diff -uNr gettext-0.12.1/Makefile.am gettext-0.12.1.good/Makefile.am
100--- gettext-0.12.1/Makefile.am 2003-04-01 12:17:29.000000000 +0200
101+++ gettext-0.12.1.good/Makefile.am 2003-08-26 20:52:48.000000000 +0200
102@@ -19,7 +19,7 @@
103
104 AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
105
106-SUBDIRS = autoconf-lib-link gettext-runtime gettext-tools
107+SUBDIRS = autoconf-lib-link gettext-runtime
108
109 EXTRA_DIST = \
110 version.sh PACKAGING README.gemtext ChangeLog.0 \
This page took 0.058129 seconds and 4 git commands to generate.