diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-02-17 03:40:22 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-02-17 03:40:22 +0000 |
commit | 56c663dcf1f417a6df6db332a19e22971cb849eb (patch) | |
tree | ab80060f902549769227a7887f0acd30c648b5e6 /promiscous~.c | |
parent | 9675cefd54146db112051dc9ede05050398c40db (diff) |
ifdefed so it only compiles on Linuxdue to linux-specific header files
svn path=/trunk/externals/ext13/; revision=399
Diffstat (limited to 'promiscous~.c')
-rw-r--r-- | promiscous~.c | 7 |
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 |