diff options
author | Sam James <sam@gentoo.org> | 2022-11-23 03:16:21 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-11-23 03:16:21 +0000 |
commit | 63177ddd27328191cd402ec03ea358017800dedd (patch) | |
tree | dbd4253703b9d4e9f81c7df137ab47debe12154d /media-libs/libmikmod | |
parent | media-sound/mikmod: EAPI 8, fix -Wstrict-prototypes in configure (diff) | |
download | gentoo-63177ddd27328191cd402ec03ea358017800dedd.tar.gz gentoo-63177ddd27328191cd402ec03ea358017800dedd.tar.bz2 gentoo-63177ddd27328191cd402ec03ea358017800dedd.zip |
media-libs/libmikmod: EAPI 8, fix -Wstrict-prototypes in configure
We may well have people proactively trying to use it and it's cheap to fix & build.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libmikmod')
-rw-r--r-- | media-libs/libmikmod/files/libmikmod-3.3.11.1-macro-strict-prototypes.patch | 14 | ||||
-rw-r--r-- | media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/media-libs/libmikmod/files/libmikmod-3.3.11.1-macro-strict-prototypes.patch b/media-libs/libmikmod/files/libmikmod-3.3.11.1-macro-strict-prototypes.patch new file mode 100644 index 000000000000..9e408866df16 --- /dev/null +++ b/media-libs/libmikmod/files/libmikmod-3.3.11.1-macro-strict-prototypes.patch @@ -0,0 +1,14 @@ +Already fixed upstream in https://github.com/sezero/mikmod/commit/4ceeed3f3929b9d9f7cfe891d44f43d202b64416. + +Fixes -Wstrict-prototypes. +--- a/libmikmod.m4 ++++ b/libmikmod.m4 +@@ -79,7 +79,7 @@ char* my_strdup (char *str) + return new_str; + } + +-int main() ++int main(void) + { + int major,minor,micro; + int libmikmod_major_version,libmikmod_minor_version,libmikmod_micro_version; diff --git a/media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild b/media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild index 96b5ee258b0b..56f0a26c6fa8 100644 --- a/media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild +++ b/media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild @@ -32,6 +32,10 @@ MULTILIB_CHOST_TOOLS=( /usr/bin/libmikmod-config ) +PATCHES=( + "${FILESDIR}"/${P}-macro-strict-prototypes.patch +) + src_prepare() { default |