Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2020 23:09:58 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r546238 - head/games/libretro-mame2003_plus/files
Message-ID:  <202008252309.07PN9wK9016791@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008252309.07PN9wK9016791>