forked from mirrors/nixpkgs
Merge pull request #44126 from eadwu/opencollada/resolve-pcre-declarations
opencollada: include pcre.h (KhronosGroup/OpenCOLLADA#570)
This commit is contained in:
commit
117680b0e9
|
@ -21,7 +21,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
patchPhase = lib.optionalString stdenv.isDarwin ''
|
||||
patchPhase = ''
|
||||
patch -p1 < ${./pcre.patch}
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
|
||||
--replace math.h cmath
|
||||
'';
|
||||
|
|
14
pkgs/development/libraries/opencollada/pcre.patch
Normal file
14
pkgs/development/libraries/opencollada/pcre.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
|
||||
index 22f2598b..269c50ca 100644
|
||||
--- a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
|
||||
+++ b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
|
||||
@@ -13,8 +13,7 @@
|
||||
|
||||
#include "COLLADABUPrerequisites.h"
|
||||
|
||||
-struct real_pcre;
|
||||
-typedef struct real_pcre pcre;
|
||||
+#include "pcre.h"
|
||||
|
||||
|
||||
namespace COLLADABU
|
Loading…
Reference in a new issue