summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-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 */