mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
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)
This commit is contained in:
parent
776ed089b9
commit
fa7428ce49
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546238
@ -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
|
Loading…
Reference in New Issue
Block a user