]> git.pld-linux.org Git - packages/crossmingw32-gettext.git/blame - crossmingw32-gettext.patch
- no longer needed
[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
63@@ -34,6 +34,8 @@
64 extern int errno;
65 #endif
66
67+typedef int ssize_t;
68+
69 #if HAVE_LIMITS_H
70 # include <limits.h>
71 #endif
72@@ -66,6 +68,11 @@
73 If realloc fails, or if the link value is longer than SIZE_MAX :-),
74 give a diagnostic and exit. */
75
76+int readlink(const char *path, char *buf, size_t bufsiz)
77+{
78+ return -1;
79+}
80+
81 char *
82 xreadlink (char const *filename)
83 {
84diff -uNr gettext-0.12.1/gettext-tools/src/Makefile.am gettext-0.12.1.good/gettext-tools/src/Makefile.am
85--- gettext-0.12.1/gettext-tools/src/Makefile.am 2003-04-29 12:05:37.000000000 +0200
86+++ gettext-0.12.1.good/gettext-tools/src/Makefile.am 2003-08-26 20:52:28.000000000 +0200
87@@ -25,7 +25,7 @@
88 RM = rm -f
89
90 bin_PROGRAMS = \
91-msgcmp msgfmt msgmerge msgunfmt xgettext \
92+msgcmp msgmerge msgunfmt xgettext \
93 msgattrib msgcat msgcomm msgconv msgen msgexec msgfilter msggrep msginit msguniq
94
95 noinst_PROGRAMS = hostname urlget
96diff -uNr gettext-0.12.1/gettext-tools/src/write-java.c gettext-0.12.1.good/gettext-tools/src/write-java.c
97--- gettext-0.12.1/gettext-tools/src/write-java.c 2003-04-29 12:04:04.000000000 +0200
98+++ gettext-0.12.1.good/gettext-tools/src/write-java.c 2003-08-26 15:43:07.000000000 +0200
99@@ -1130,7 +1130,7 @@
100 for (i = 0; i < ndots; i++)
101 {
102 cleanup_list.subdir_count = i + 1;
103- if (mkdir (subdirs[i], S_IRUSR | S_IWUSR | S_IXUSR) < 0)
104+ if (mkdir (subdirs[i]) < 0)
105 {
106 error (0, errno, _("failed to create \"%s\""), subdirs[i]);
107 while (i-- > 0)
108diff -uNr gettext-0.12.1/Makefile.am gettext-0.12.1.good/Makefile.am
109--- gettext-0.12.1/Makefile.am 2003-04-01 12:17:29.000000000 +0200
110+++ gettext-0.12.1.good/Makefile.am 2003-08-26 20:52:48.000000000 +0200
111@@ -19,7 +19,7 @@
112
113 AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
114
115-SUBDIRS = autoconf-lib-link gettext-runtime gettext-tools
116+SUBDIRS = autoconf-lib-link gettext-runtime
117
118 EXTRA_DIST = \
119 version.sh PACKAGING README.gemtext ChangeLog.0 \
This page took 0.10177 seconds and 4 git commands to generate.