summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/imlib/files/imlib-1.9.15-c99-configure.patch20
-rw-r--r--media-libs/imlib/imlib-1.9.15-r9.ebuild (renamed from media-libs/imlib/imlib-1.9.15-r8.ebuild)1
2 files changed, 21 insertions, 0 deletions
diff --git a/media-libs/imlib/files/imlib-1.9.15-c99-configure.patch b/media-libs/imlib/files/imlib-1.9.15-c99-configure.patch
new file mode 100644
index 000000000000..a22514d2dea1
--- /dev/null
+++ b/media-libs/imlib/files/imlib-1.9.15-c99-configure.patch
@@ -0,0 +1,20 @@
+https://bugs.gentoo.org/898234
+--- a/configure.ac
++++ b/configure.ac
+@@ -62,7 +62,7 @@ if test "x$GDK_IMLIB" != x; then
+ #include <glib.h>
+ #include <gmodule.h>
+ #include <stdlib.h>
+-main ()
++int main ()
+ {
+ if (g_module_supported ())
+ exit (0);
+@@ -166,6 +166,7 @@ if test "x$enable_shm" = "xyes"; then
+ #include <sys/types.h>
+ #include <sys/ipc.h>
+ #include <sys/shm.h>
++ #include <stdlib.h>
+ int main()
+ {
+ int id;
diff --git a/media-libs/imlib/imlib-1.9.15-r8.ebuild b/media-libs/imlib/imlib-1.9.15-r9.ebuild
index 494be1fba26d..5120f9d71d84 100644
--- a/media-libs/imlib/imlib-1.9.15-r8.ebuild
+++ b/media-libs/imlib/imlib-1.9.15-r9.ebuild
@@ -39,6 +39,7 @@ PATCHES=(
"${FILESDIR}"/${P}-underlinking-test.patch #367645
"${FILESDIR}"/${P}-no-LDFLAGS-in-pc.patch
"${FILESDIR}"/${P}-giflib51-{1,2}.patch #538976
+ "${FILESDIR}"/${P}-c99-configure.patch #898234
)
src_prepare() {