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:
Piotr Kubaj 2020-08-26 11:28:52 +00:00
parent 081d9b8eb2
commit ca772a17a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546263

View file

@ -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