Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2019 22:36:28 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518737 - head/games/spring/files
Message-ID:  <201911302236.xAUMaSwp038941@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Nov 30 22:36:28 2019
New Revision: 518737
URL: https://svnweb.freebsd.org/changeset/ports/518737

Log:
  games/spring: Unbreak with openal-soft-1.20.0
  
  In file included from rts/System/Sound/OpenAL/Sound.cpp:7:
  /usr/local/include/AL/alc.h:34:16: error: typedef 'ALCdevice' cannot be referenced with a struct specifier
  typedef struct ALCdevice ALCdevice;
                 ^
  rts/System/Sound/OpenAL/Sound.h:23:33: note: declared here
  typedef struct ALCdevice_struct ALCdevice;
                                  ^
  1 error generated.
  
  http://beefy6.nyi.freebsd.org/data/120amd64-default/518685/logs/errors/spring-98.0_19.log

Added:
  head/games/spring/files/patch-rts_System_Sound_OpenAL_Sound.h   (contents, props changed)

Added: head/games/spring/files/patch-rts_System_Sound_OpenAL_Sound.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/spring/files/patch-rts_System_Sound_OpenAL_Sound.h	Sat Nov 30 22:36:28 2019	(r518737)
@@ -0,0 +1,28 @@
+In file included from rts/System/Sound/OpenAL/Sound.cpp:7:
+/usr/local/include/AL/alc.h:34:16: error: typedef 'ALCdevice' cannot be referenced with a struct specifier
+typedef struct ALCdevice ALCdevice;
+               ^
+rts/System/Sound/OpenAL/Sound.h:23:33: note: declared here
+typedef struct ALCdevice_struct ALCdevice;
+                                ^
+1 error generated.
+
+--- rts/System/Sound/OpenAL/Sound.h.orig	2019-11-30 22:16:43 UTC
++++ rts/System/Sound/OpenAL/Sound.h
+@@ -11,6 +11,7 @@
+ #include <vector>
+ #include <boost/ptr_container/ptr_vector.hpp>
+ #include <boost/thread/recursive_mutex.hpp>
++#include <AL/alc.h>
+ 
+ #include "System/float3.h"
+ 
+@@ -19,8 +20,6 @@
+ class CSoundSource;
+ class SoundBuffer;
+ class SoundItem;
+-struct ALCdevice_struct;
+-typedef struct ALCdevice_struct ALCdevice;
+ 
+ namespace boost {
+ 	class thread;



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