[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
#if ENABLE_NLS, #include <libintl.h>, libparted/filesys.c
From: |
Buttchereit, Axel (XLsigned) |
Subject: |
#if ENABLE_NLS, #include <libintl.h>, libparted/filesys.c |
Date: |
Thu, 30 Dec 2004 05:09:59 +0100 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20040925) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
parted-1.6.X including current version 1.6.20 does not build
on non-NLS-systems (e.g. on my uclibc/gentoo-embedded),
because "#include <libintl.h>" is obviously misplaced
in "libparted/filesys.c".
"libintl.h" should not be included, if ENABLE_NLS is undefined.
(header file does not exist)
Applying the following patch fixes this issue by moving
#include <libintl.h>
to the
#if ENABLE_NLS-block
(see: "libparted/libparted.c", "libparted/gnu.c", ...)
Cheers
- -Axel
- --- parted-1.6.10/libparted/filesys.c.orig 2004-12-11 02:03:57 +0000
+++ parted-1.6.10/libparted/filesys.c 2004-12-11 02:04:31 +0000
@@ -23,8 +23,8 @@
#include <parted/debug.h>
#include <string.h>
- -#include <libintl.h>
#if ENABLE_NLS
+# include <libintl.h>
# define _(String) dgettext (PACKAGE, String)
#else
# define _(String) (String)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB03+XWr3rpUlTqH4RAh6pAKCcwUX79cN1lEnUfrC1baPwEFk0DgCfTWpK
oZjgfyecJnRQSbXa9E3YVf8=
=zpbr
-----END PGP SIGNATURE-----
- #if ENABLE_NLS, #include <libintl.h>, libparted/filesys.c,
Buttchereit, Axel (XLsigned) <=