aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-04 23:32:09 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-04 23:32:09 +0000
commit116783794ea3af6318bde312505ee10e1ad46eb7 (patch)
treea38cd8647959e1032c5724bc494a4866308e3614
parentceb70fb62c0a27f8e43e5e6553fbd1a99afa868b (diff)
changed macro to the standard auto __gnu_linux__ and fixed memory allocation bug
svn path=/trunk/externals/ext13/; revision=11670
-rw-r--r--cdplayer.c2
-rw-r--r--ossmixer.c4
-rw-r--r--promiscous~.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/cdplayer.c b/cdplayer.c
index 4622abf..9529301 100644
--- a/cdplayer.c
+++ b/cdplayer.c
@@ -1,4 +1,4 @@
-#ifdef LINUX
+#ifdef __gnu_linux__
#include "ext13.h"
#include "m_pd.h"
diff --git a/ossmixer.c b/ossmixer.c
index d6d639e..7617dce 100644
--- a/ossmixer.c
+++ b/ossmixer.c
@@ -1,5 +1,5 @@
-#ifdef LINUX
+#ifdef __gnu_linux__
#include "ext13.h"
#include "m_pd.h"
@@ -34,7 +34,7 @@ typedef struct _ossmixer
static void *ossmixer_new(t_floatarg f)
{
- char* devicename;
+ char devicename[FILENAME_MAX];
int fd = -1;
t_ossmixer *x = (t_ossmixer *)pd_new(ossmixer_class);
outlet_new(&x->x_obj, &s_bang);
diff --git a/promiscous~.c b/promiscous~.c
index 0c6a9ec..eebdc63 100644
--- a/promiscous~.c
+++ b/promiscous~.c
@@ -1,4 +1,4 @@
-#ifdef LINUX
+#ifdef __gnu_linux__
// find a replacement for <linux/if_packet.h>
// then this will work on other UNIXes