Mercurial > hg > octave-lyh > gnulib-hg
changeset 5676:4b054c347e26
Internationalize an error message.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 03 Mar 2005 16:39:16 +0000 |
parents | 9fb0004d9fa6 |
children | bad1899438ed |
files | lib/pagealign_alloc.c modules/pagealign_alloc |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/pagealign_alloc.c +++ b/lib/pagealign_alloc.c @@ -44,6 +44,9 @@ #include "exit.h" #include "getpagesize.h" #include "xalloc.h" +#include "gettext.h" + +#define _(str) gettext (str) #if HAVE_MMAP || ! HAVE_POSIX_MEMALIGN @@ -129,7 +132,7 @@ { fd = open ("/dev/zero", O_RDONLY, 0666); if (fd < 0) - error (EXIT_FAILURE, errno, "Failed to open /dev/zero for read"); + error (EXIT_FAILURE, errno, _("Failed to open /dev/zero for read")); } # endif /* HAVE_MAP_ANONYMOUS */ ret = mmap (NULL, size, PROT_READ | PROT_WRITE, flags, fd, 0);