diff options
Diffstat (limited to 'src/lpt.c')
-rw-r--r-- | src/lpt.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -46,12 +46,12 @@ # include <stdlib.h> # include <errno.h> -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H # include <sys/ioctl.h> # include <linux/ppdev.h> # include <linux/parport.h> # include <fcntl.h> -# endif /* HAVE_PPDEV */ +# endif /* HAVE_LINUX_PPDEV_H */ # ifdef __WIN32__ @@ -112,7 +112,7 @@ static void lpt_float(t_lpt *x, t_floatarg f) { unsigned char b = f; #ifdef Z_WANT_LPT -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ ioctl (x->device, PPWDATA, &b); } else @@ -126,7 +126,7 @@ static void lpt_float(t_lpt *x, t_floatarg f) static void lpt_control(t_lpt *x, t_floatarg f) { unsigned char b = f; -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ ioctl (x->device, PPWCONTROL, &b); } else @@ -140,7 +140,7 @@ static void lpt_control(t_lpt *x, t_floatarg f) static void lpt_bang(t_lpt *x) { -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ unsigned char b=0; ioctl (x->device, PPRCONTROL, &b); @@ -196,7 +196,7 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) x->device=-1; x->port=strtol(devname, 0, 16); if(0==x->port){ -#ifdef HAVE_PPDEV +#ifdef HAVE_LINUX_PPDEV_H x->device = open(devname, O_RDWR); if(x->device<=0){ error("lpt: bad device %s", devname); @@ -208,7 +208,7 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) x->device=-1; } } -#endif /* HAVE_PPDEV */ +#endif /* HAVE_LINUX_PPDEV_H */ } } @@ -260,7 +260,7 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) static void lpt_free(t_lpt *x) { #ifdef Z_WANT_LPT -# ifdef HAVE_PPDEV +# ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ ioctl (x->device, PPRELEASE); close(x->device); |