aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2018-11-28 14:29:52 -0500
committerTaylor Holberton <taylorcholberton@gmail.com>2018-11-28 14:29:52 -0500
commit4c5a11d872b3cc09d267ddf39bf9d2b8c1a3e98d (patch)
tree5a7a1ca8bce2f2454d5b8d9be22567fe0d51be3f /src
parent88afbfbb548981e3c2a6fe28380f3cdb661ab8b9 (diff)
Checking for definition of __bitwise, __force, __user
Diffstat (limited to 'src')
-rw-r--r--src/mixer.c10
-rw-r--r--src/pcm.c10
2 files changed, 20 insertions, 0 deletions
diff --git a/src/mixer.c b/src/mixer.c
index a9cc483..742c231 100644
--- a/src/mixer.c
+++ b/src/mixer.c
@@ -41,9 +41,19 @@
#include <sys/ioctl.h>
#include <linux/ioctl.h>
+
+#ifndef __force
#define __force
+#endif
+
+#ifndef __bitwise
#define __bitwise
+#endif
+
+#ifndef __user
#define __user
+#endif
+
#include <sound/asound.h>
#include <tinyalsa/mixer.h>
diff --git a/src/pcm.c b/src/pcm.c
index f1d733f..d70f789 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -42,9 +42,19 @@
#include <limits.h>
#include <linux/ioctl.h>
+
+#ifndef __force
#define __force
+#endif
+
+#ifndef __bitwise
#define __bitwise
+#endif
+
+#ifndef __user
#define __user
+#endif
+
#include <sound/asound.h>
#include <tinyalsa/pcm.h>