games/libretro-mame2003: fix build on GCC architectures
Define __BSD_VISIBLE if it's not defined to uncover u_int: 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)
This commit is contained in:
parent
081d9b8eb2
commit
ca772a17a3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546263
1 changed files with 12 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
--- src/libretro-deps/libFLAC/cpu.c.orig 2020-01-12 04:45:51 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
|
Loading…
Reference in a new issue