summaryrefslogtreecommitdiffstats
path: root/tdeioslave/audiocd/plugins
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-11-26 19:47:39 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-11-26 19:47:39 +0100
commite9500088e5ca7e955a83e34d2d044ee0cdb04590 (patch)
tree2edca73719df780774c05fbe3f8a412cad5cf76f /tdeioslave/audiocd/plugins
parent79546240dcac674ef0155038b57d760890b15d29 (diff)
downloadtdemultimedia-e9500088e5ca7e955a83e34d2d044ee0cdb04590.tar.gz
tdemultimedia-e9500088e5ca7e955a83e34d2d044ee0cdb04590.zip
Fix FTBFS in tdeioslave/audiocd/plugins/wav on openbsd
Signed-off-by: François Andriot <francois.andriot@free.fr>
Diffstat (limited to 'tdeioslave/audiocd/plugins')
-rw-r--r--tdeioslave/audiocd/plugins/wav/encodercda.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tdeioslave/audiocd/plugins/wav/encodercda.cpp b/tdeioslave/audiocd/plugins/wav/encodercda.cpp
index ef8522d9..70ca37ff 100644
--- a/tdeioslave/audiocd/plugins/wav/encodercda.cpp
+++ b/tdeioslave/audiocd/plugins/wav/encodercda.cpp
@@ -44,7 +44,9 @@ extern "C"
{
#include <cdda_interface.h>
}
-
+#ifdef __OpenBSD__
+#undef swap16
+#endif
inline int16_t swap16 (int16_t i)
{
return (((i >> 8) & 0xFF) | ((i << 8) & 0xFF00));