From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../icoutils/files/icoutils-0.29.1-locale.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 media-gfx/icoutils/files/icoutils-0.29.1-locale.patch (limited to 'media-gfx/icoutils/files/icoutils-0.29.1-locale.patch') diff --git a/media-gfx/icoutils/files/icoutils-0.29.1-locale.patch b/media-gfx/icoutils/files/icoutils-0.29.1-locale.patch new file mode 100644 index 000000000000..d73ae119ea5e --- /dev/null +++ b/media-gfx/icoutils/files/icoutils-0.29.1-locale.patch @@ -0,0 +1,39 @@ +Fix compiling with -O0 (see ) + + +--- a/wrestool/main.c ++++ b/wrestool/main.c +@@ -32,6 +32,10 @@ + #include "common/string-utils.h" + #include "wrestool.h" + ++#ifdef HAVE_LOCALE_H ++#include ++#endif ++ + #define PROGRAM "wrestool" + + +--- a/icotool/main.c ++++ b/icotool/main.c +@@ -37,6 +37,10 @@ + #include "common/io-utils.h" + #include "icotool.h" + ++#ifdef HAVE_LOCALE_H ++#include ++#endif ++ + #define PROGRAM "icotool" + + static int32_t image_index = -1; +--- a/configure.ac ++++ b/configure.ac +@@ -34,6 +34,7 @@ + AC_HEADER_SYS_WAIT + AC_HEADER_TIME + #AC_CHECK_HEADERS([byteswap.h errno.h fcntl.h getopt.h limits.h sys/stat.h sys/time.h sys/types.h unistd.h]) ++AC_CHECK_HEADERS([locale.h]) + + # Checks for typedefs, structures, and compiler characteristics. + AC_C_INLINE -- cgit v1.2.3