# HG changeset patch # User Bruno Haible # Date 1213144426 -7200 # Node ID 0f4edd8ae2f191e644c30b8387a7d7f0ecd06b3e # Parent 81b16cc991ccb8dae897857b86d454f89010a94f Include gettext.h only in those files that need it. diff -r 81b16cc991cc -r 0f4edd8ae2f1 ChangeLog --- a/ChangeLog Tue Jun 10 17:38:39 2008 +0200 +++ b/ChangeLog Wed Jun 11 02:33:46 2008 +0200 @@ -1,3 +1,9 @@ +2008-06-10 Bruno Haible + + * lib/acl-internal.h: Don't include gettext.h here. + * lib/set-mode-acl.c: Include gettext.h here. + * lib/copy-acl.c: Likewise. + 2008-06-10 Bruno Haible * lib/wait-process.h (wait_subprocess): Add termsigp argument. diff -r 81b16cc991cc -r 0f4edd8ae2f1 lib/acl-internal.h --- a/lib/acl-internal.h Tue Jun 10 17:38:39 2008 +0200 +++ b/lib/acl-internal.h Wed Jun 11 02:33:46 2008 +0200 @@ -46,9 +46,6 @@ # define ENOTSUP (-1) #endif -#include "gettext.h" -#define _(msgid) gettext (msgid) - #ifndef HAVE_FCHMOD # define HAVE_FCHMOD false # define fchmod(fd, mode) (-1) diff -r 81b16cc991cc -r 0f4edd8ae2f1 lib/copy-acl.c --- a/lib/copy-acl.c Tue Jun 10 17:38:39 2008 +0200 +++ b/lib/copy-acl.c Wed Jun 11 02:33:46 2008 +0200 @@ -23,6 +23,9 @@ #include "acl-internal.h" +#include "gettext.h" +#define _(msgid) gettext (msgid) + /* Copy access control lists from one file to another. If SOURCE_DESC is a valid file descriptor, use file descriptor operations, else use diff -r 81b16cc991cc -r 0f4edd8ae2f1 lib/set-mode-acl.c --- a/lib/set-mode-acl.c Tue Jun 10 17:38:39 2008 +0200 +++ b/lib/set-mode-acl.c Wed Jun 11 02:33:46 2008 +0200 @@ -23,6 +23,10 @@ #include "acl-internal.h" +#include "gettext.h" +#define _(msgid) gettext (msgid) + + /* If DESC is a valid file descriptor use fchmod to change the file's mode to MODE on systems that have fchown. On systems that don't have fchown and if DESC is invalid, use chown on