This fixes the root cause of yesterday's compile problem.
Without the _GNU_SOURCE definition from config.h, the declaration
of wcsdup in <wchar.h> was not visible:
Fix configure-with-nls vs. wchar.h/wcsdup problem differently.
* parted/table.c: Include <config.h> *before* all other #include
directives. Remove explicit declaration of wcsdup. Now, we'll
get the one from <wchar.h>.
Signed-off-by: Jim Meyering <[EMAIL PROTECTED]>
---
parted/table.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/parted/table.c b/parted/table.c
index c878f60..1301549 100644
--- a/parted/table.c
+++ b/parted/table.c
@@ -21,18 +21,17 @@
*/
+#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
-#include <config.h>
#ifdef ENABLE_NLS
# include <wchar.h>
int wcswidth (const wchar_t *s, size_t n);
- wchar_t *wcsdup(const wchar_t *s);
# define L_(str) L##str
#else
# define L_(str) str
_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel