瀏覽代碼

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>
Peter S. Mazinger 13 年之前
父節點
當前提交
71b7e3c571
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      utils/iconv.c

+ 3 - 1
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 */