aboutsummaryrefslogtreecommitdiff
path: root/promiscous~.c
diff options
context:
space:
mode:
Diffstat (limited to 'promiscous~.c')
-rw-r--r--promiscous~.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/promiscous~.c b/promiscous~.c
index 49cc4e5..0c6a9ec 100644
--- a/promiscous~.c
+++ b/promiscous~.c
@@ -1,3 +1,7 @@
+#ifdef LINUX
+// find a replacement for <linux/if_packet.h>
+// then this will work on other UNIXes
+
#include "m_pd.h"
#include "ext13.h"
#include <sys/types.h>
@@ -16,7 +20,6 @@
#include <linux/if_packet.h>
-
/* ------------------------ promiscous_tilde~ ----------------------------- */
@@ -157,3 +160,5 @@ void promiscous_tilde_setup(void)
sizeof(t_promiscous_tilde), CLASS_NOINLET, A_DEFSYM, 0);
class_addmethod(promiscous_tilde_class, (t_method) promiscous_tilde_dsp, gensym("dsp"), 0);
}
+
+#endif