From d1600ae72b4291c8595abfc9014c8dda8c600967 Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Sat, 19 Mar 2011 00:33:39 +0100
Subject: [PATCH 112/396] iconv.c: make iconv use the XPG version of basename

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 utils/iconv.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/utils/iconv.c b/utils/iconv.c
index 844320a..1ee0dd5 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 __LOCALE_DATA_CODESET_LIST */
 
-- 
1.7.0.4

