diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2021-03-23 12:04:35 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-03-23 12:04:51 +0100 |
commit | 204d1ca3dc246b65cc1a107c945e8920a03a34b6 (patch) | |
tree | 705ecd440e357aa901a1b2c4fb3f54edafd63b9c /media-sound/moc/files | |
parent | net-im/slack: drop old (diff) | |
download | gentoo-204d1ca3dc246b65cc1a107c945e8920a03a34b6.tar.gz gentoo-204d1ca3dc246b65cc1a107c945e8920a03a34b6.tar.bz2 gentoo-204d1ca3dc246b65cc1a107c945e8920a03a34b6.zip |
media-sound/moc: fixed compilation issue in 2.6*
thanks to Stefan Michelsson <stefan@michelsson.me>
for the fix
Closes: https://bugs.gentoo.org/716330
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/moc/files')
-rw-r--r-- | media-sound/moc/files/moc-2.6_alpha3-stdint_uint_types.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/media-sound/moc/files/moc-2.6_alpha3-stdint_uint_types.patch b/media-sound/moc/files/moc-2.6_alpha3-stdint_uint_types.patch new file mode 100644 index 000000000000..1600af599b28 --- /dev/null +++ b/media-sound/moc/files/moc-2.6_alpha3-stdint_uint_types.patch @@ -0,0 +1,39 @@ +diff -ru a/configure.in b/configure.in +--- a/configure.in 2016-11-16 02:29:53.000000000 +0200 ++++ b/configure.in 2020-11-21 06:07:06.778092416 +0200 +@@ -152,9 +152,9 @@ + CFLAGS="$save_CFLAGS" + LDFLAGS="$LDFLAGS $BDB_LDFLAGS" + EXTRA_LIBS="$EXTRA_LIBS $BDB_LIBS" +- AC_CHECK_TYPES([u_int], , , [[#include "${srcdir}/compiler.h"] ++ AC_CHECK_TYPES([u_int,u_int32_t], , , [[#include "${srcdir}/compiler.h"] + [#include <sys/types.h>] +- [#include <db.h>]]) ++ [#include <stdint.h>]]) + fi + + AC_ARG_WITH(oss, AS_HELP_STRING([--without-oss], +diff -ru a/tags_cache.c b/tags_cache.c +--- a/tags_cache.c 2016-11-16 02:29:53.000000000 +0200 ++++ b/tags_cache.c 2020-11-21 06:02:55.043214842 +0200 +@@ -24,6 +24,7 @@ + #include <time.h> + #include <unistd.h> + #include <dirent.h> ++#include <stdint.h> + + #ifdef HAVE_DB_H + # ifndef HAVE_U_INT +@@ -32,6 +33,12 @@ + typedef unsigned int u_int; + typedef unsigned long int u_long; + # endif ++# ifndef HAVE_U_INT32_T ++typedef uint8_t u_int8_t; ++typedef uint16_t u_int16_t; ++typedef uint32_t u_int32_t; ++typedef uint64_t u_int64_t; ++# endif + #include <db.h> + #endif + |