Annotation of /trunk/attr/patches/attr-2.4.44-gettext.patch
Parent Directory | Revision Log
Revision 1076 -
(hide annotations)
(download)
Tue Aug 17 14:35:41 2010 UTC (13 years, 10 months ago) by niro
File size: 1577 byte(s)
Tue Aug 17 14:35:41 2010 UTC (13 years, 10 months ago) by niro
File size: 1577 byte(s)
fixed headers, rediffed patches
1 | niro | 1076 | --- include/gettext.h |
2 | +++ include/gettext.h | ||
3 | @@ -0,0 +1,10 @@ | ||
4 | +#include <config.h> | ||
5 | +#ifdef ENABLE_GETTEXT | ||
6 | +# include <libintl.h> | ||
7 | +# define _(x) gettext(x) | ||
8 | +#else | ||
9 | +# define _(x) (x) | ||
10 | +# define textdomain(d) do { } while (0) | ||
11 | +# define bindtextdomain(d,dir) do { } while (0) | ||
12 | +#endif | ||
13 | +#include <locale.h> | ||
14 | --- attr/attr.c | ||
15 | +++ attr/attr.c | ||
16 | @@ -26,6 +26,7 @@ | ||
17 | #include <errno.h> | ||
18 | #include <string.h> | ||
19 | #include <locale.h> | ||
20 | +#include "gettext.h" | ||
21 | |||
22 | #include <attr/attributes.h> | ||
23 | #include "config.h" | ||
24 | --- libattr/attr_copy_file.c.orig 2007-09-20 02:51:37.000000000 -0400 | ||
25 | +++ libattr/attr_copy_file.c 2007-09-20 02:51:51.000000000 -0400 | ||
26 | @@ -19,6 +19,7 @@ | ||
27 | |||
28 | #if defined (HAVE_CONFIG_H) | ||
29 | #include "config.h" | ||
30 | +#include "gettext.h" | ||
31 | #endif | ||
32 | |||
33 | #include <sys/types.h> | ||
34 | --- libattr/attr_copy_fd.c.orig 2007-09-20 02:52:23.000000000 -0400 | ||
35 | +++ libattr/attr_copy_fd.c 2007-09-20 02:52:31.000000000 -0400 | ||
36 | @@ -19,6 +19,7 @@ | ||
37 | |||
38 | #if defined (HAVE_CONFIG_H) | ||
39 | #include "config.h" | ||
40 | +#include "gettext.h" | ||
41 | #endif | ||
42 | |||
43 | #include <sys/types.h> | ||
44 | --- getfattr/getfattr.c.orig 2007-09-20 02:52:49.000000000 -0400 | ||
45 | +++ getfattr/getfattr.c 2007-09-20 02:52:59.000000000 -0400 | ||
46 | @@ -30,6 +30,7 @@ | ||
47 | #include <regex.h> | ||
48 | #include <ftw.h> | ||
49 | #include <locale.h> | ||
50 | +#include "gettext.h" | ||
51 | |||
52 | #include <attr/xattr.h> | ||
53 | #include "config.h" | ||
54 | --- setfattr/setfattr.c.orig 2007-09-20 02:53:12.000000000 -0400 | ||
55 | +++ setfattr/setfattr.c 2007-09-20 02:53:20.000000000 -0400 | ||
56 | @@ -28,6 +28,7 @@ | ||
57 | #include <getopt.h> | ||
58 | #include <locale.h> | ||
59 | #include <ctype.h> | ||
60 | +#include "gettext.h" | ||
61 | |||
62 | #include <attr/xattr.h> | ||
63 | #include "config.h" |