diff options
author | Sam James <sam@gentoo.org> | 2024-05-10 00:15:05 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-05-10 00:15:05 +0100 |
commit | 20f11b9862b4fc6cc24a90d8c64900d5ecc236f8 (patch) | |
tree | 57613d03a45c7f4766b46ee6d56bd11162191bae /media-libs/imlib | |
parent | sci-astronomy/fitsh: add 0.9.4 (diff) | |
download | gentoo-20f11b9862b4fc6cc24a90d8c64900d5ecc236f8.tar.gz gentoo-20f11b9862b4fc6cc24a90d8c64900d5ecc236f8.tar.bz2 gentoo-20f11b9862b4fc6cc24a90d8c64900d5ecc236f8.zip |
media-libs/imlib: fix Modern C issues in configure
Closes: https://bugs.gentoo.org/898234
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/imlib')
-rw-r--r-- | media-libs/imlib/files/imlib-1.9.15-c99-configure.patch | 20 | ||||
-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() { |