Преглед изворни кода

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 */