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