aboutsummaryrefslogtreecommitdiffstats
path: root/src/dabOutput
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-03-05 17:32:33 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-03-05 17:32:33 +0100
commit8dad8afa09a3740dd90bd70917ff93a63098e576 (patch)
tree9b7917169e66fe6c43869f79ad4c3d8fbba56cde /src/dabOutput
parent19431ba192c3b95726c7297c96494ba6397879ef (diff)
downloaddabmux-8dad8afa09a3740dd90bd70917ff93a63098e576.tar.gz
dabmux-8dad8afa09a3740dd90bd70917ff93a63098e576.tar.bz2
dabmux-8dad8afa09a3740dd90bd70917ff93a63098e576.zip
Compile under OSX
Diffstat (limited to 'src/dabOutput')
-rw-r--r--src/dabOutput/dabOutputRaw.cpp8
-rw-r--r--src/dabOutput/dabOutputUdp.cpp7
2 files changed, 15 insertions, 0 deletions
diff --git a/src/dabOutput/dabOutputRaw.cpp b/src/dabOutput/dabOutputRaw.cpp
index 346d34d..42d9238 100644
--- a/src/dabOutput/dabOutputRaw.cpp
+++ b/src/dabOutput/dabOutputRaw.cpp
@@ -23,6 +23,12 @@
You should have received a copy of the GNU General Public License
along with ODR-DabMux. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#if defined(HAVE_OUTPUT_RAW)
+
#include <cstdio>
#include <cstring>
#include "dabOutput.h"
@@ -390,3 +396,5 @@ int DabOutputRaw::Close()
return -1;
}
+#endif // defined(HAVE_OUTPUT_RAW)
+
diff --git a/src/dabOutput/dabOutputUdp.cpp b/src/dabOutput/dabOutputUdp.cpp
index 9664a2d..3338ea6 100644
--- a/src/dabOutput/dabOutputUdp.cpp
+++ b/src/dabOutput/dabOutputUdp.cpp
@@ -23,6 +23,11 @@
You should have received a copy of the GNU General Public License
along with ODR-DabMux. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#if defined(HAVE_OUTPUT_UDP)
#include <cstring>
#include <cstdio>
@@ -105,3 +110,5 @@ int DabOutputUdp::Write(void* buffer, int size)
this->packet_->addData(buffer, size);
return this->socket_->send(*this->packet_);
}
+#endif // defined(HAVE_OUTPUT_UDP)
+