summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-19 00:33:39 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:28 +0200
commit71b7e3c571ba29bd4e8f99c187286651ebd10d1a (patch)
treefcfb165a98a161b7856bb53f47b2639d650c6f57
parent1f3ca8e086cef1a577c0fcfb948ba3c13421e45d (diff)
iconv.c: make iconv use the XPG version of basename
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--utils/iconv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/iconv.c b/utils/iconv.c
index 589c64cbd..04e2c32eb 100644
--- a/utils/iconv.c
+++ b/utils/iconv.c
@@ -98,11 +98,13 @@
* Manuel
*/
+/* keep libgen before string.h - and porting.h to use the
+ * XPG version of basename */
+#include <libgen.h>
#include "porting.h"
#include <string.h>
#include <iconv.h>
#include <stdarg.h>
-#include <libgen.h>
#include <wchar.h>
#include "wchar.c" /* for _UC_iconv_t and __iconv_codesets */