freebsd-ports/audio/rezound/files/patch-missing-includes
Alexey Dokuchaev ba425b79d1 Fix compilation problems with Clang (inaccurate usage of type qualifiers,
lack of this->, some missing #include's) that could be patched via simple
sed(1) calls and one trivial patch.  Linking still fails, and so does the
build with GCC 4.6+; this would be fixed in a separate commit, along with
other issues with the port (dependency on restricted LAME codec, usage of
somewhat old FOX v1.4).

While here, convert large number of optional LIB_DEPENDS conditionals to
helper knobs, reword LARGEFILE_DESC, do not bogusly augment CONFIGURE_ENV,
and stagify.

For users that have ReZound package installed, this commit does not bring
any visible changes, and should not be merged to any "stable" or quarterly
branches alone.
2013-12-25 11:27:31 +00:00

42 lines
1.1 KiB
Text

--- src/backend/CPortAudioSoundPlayer.cpp.orig
+++ src/backend/CPortAudioSoundPlayer.cpp
@@ -23,6 +23,7 @@
#ifdef ENABLE_PORTAUDIO
#include <stdio.h>
+#include <string.h>
#include <stdexcept>
--- src/backend/CPortAudioSoundRecorder.cpp.orig
+++ src/backend/CPortAudioSoundRecorder.cpp
@@ -22,6 +22,8 @@
#ifdef ENABLE_PORTAUDIO
+#include <cstdio>
+
#include <stdexcept>
#include "settings.h"
--- src/backend/Generate/CGenerateNoiseAction.cpp.orig
+++ src/backend/Generate/CGenerateNoiseAction.cpp
@@ -23,6 +23,8 @@
#include "../CActionParameters.h"
+#include <cstdlib>
+
CGenerateNoiseAction::CGenerateNoiseAction(const AActionFactory *factory,const CActionSound *actionSound,const double _noiseLength,const double _volume,const NoiseTypes _noiseType,const StereoImage _stereoImage,const double _maxParticleVelocity):
AAction(factory,actionSound),
noiseLength(_noiseLength), // seconds
--- src/backend/Remaster/CAdaptiveNormalizeAction.cpp.orig
+++ src/backend/Remaster/CAdaptiveNormalizeAction.cpp
@@ -20,6 +20,7 @@
#include "CAdaptiveNormalizeAction.h"
+#include <cstdio>
#include <utility>
#include "../CActionParameters.h"