svn commit: r546238 - head/games/libretro-mame2003_plus/files
Piotr Kubaj
pkubaj at FreeBSD.org
Tue Aug 25 23:09:59 UTC 2020
Author: pkubaj
Date: Tue Aug 25 23:09:58 2020
New Revision: 546238
URL: https://svnweb.freebsd.org/changeset/ports/546238
Log:
games/libretro-mame2003_plus: fix build on GCC architectures
Define __BSD_VISIBLE if it's not defined to make u_int visible:
In file included from src/libretro-deps/libFLAC/cpu.c:83:
/usr/include/sys/sysctl.h:1101:25: error: unknown type name 'u_int'; did you mean 'int'?
1101 | int sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
| ^~~~~
| int
MFH: 2020Q3 (fix build blanket)
Added:
head/games/libretro-mame2003_plus/files/
head/games/libretro-mame2003_plus/files/patch-src_libretro-deps_libFLAC_cpu.c (contents, props changed)
Added: head/games/libretro-mame2003_plus/files/patch-src_libretro-deps_libFLAC_cpu.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/libretro-mame2003_plus/files/patch-src_libretro-deps_libFLAC_cpu.c Tue Aug 25 23:09:58 2020 (r546238)
@@ -0,0 +1,12 @@
+--- src/libretro-deps/libFLAC/cpu.c.orig 2020-08-25 21:34:31 UTC
++++ src/libretro-deps/libFLAC/cpu.c
+@@ -79,6 +79,9 @@ static void sigill_handler (int sig)
+ #endif
+
+ #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
++#ifndef __BSD_VISIBLE
++#define __BSD_VISIBLE 1
++#endif
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+ #endif
More information about the svn-ports-all
mailing list