aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-10-03 03:53:12 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-10-03 03:53:12 +0000
commitbd0e54dd5863570a51db777a6d42462f28e4f737 (patch)
tree199327299148a9339547c861fb0f5157f7c57d98
parent3be91f1b07841c6126d5ce6d0370ebae3e6a1c4e (diff)
downloadlcd4linux-bd0e54dd5863570a51db777a6d42462f28e4f737.tar.gz
[lcd4linux @ 2003-10-03 03:53:12 by reinelt]
compile error in parport fixed (thanks to Andrew from FilmCan) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@251 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--parport.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/parport.c b/parport.c
index 204ba20..d177234 100644
--- a/parport.c
+++ b/parport.c
@@ -1,4 +1,4 @@
-/* $Id: parport.c,v 1.8 2003/09/09 06:54:43 reinelt Exp $
+/* $Id: parport.c,v 1.9 2003/10/03 03:53:12 reinelt Exp $
*
* generic parallel port handling
*
@@ -20,6 +20,9 @@
*
*
* $Log: parport.c,v $
+ * Revision 1.9 2003/10/03 03:53:12 reinelt
+ * compile error in parport fixed (thanks to Andrew from FilmCan)
+ *
* Revision 1.8 2003/09/09 06:54:43 reinelt
* new function 'cfg_number()'
*
@@ -442,7 +445,14 @@ void parport_debug(void)
{
unsigned char control;
- ioctl (PPfd, PPRCONTROL, &control);
+#ifdef WITH_PPDEV
+ if (PPdev) {
+ ioctl (PPfd, PPRCONTROL, &control);
+ } else
+#endif
+ {
+ control=ctr;
+ }
debug ("%cSTROBE %cAUTOFD %cINIT %cSELECT",
control & PARPORT_CONTROL_STROBE ? '-':'+',