aboutsummaryrefslogtreecommitdiffstats
path: root/HD44780.c
diff options
context:
space:
mode:
authorreinelt <>2000-07-31 10:43:44 +0000
committerreinelt <>2000-07-31 10:43:44 +0000
commita7f2de2a1d1fb7b5c8b3ba277ea66f01e692dd18 (patch)
treea9166e080f3ac5e3675bfa3fad68942d47ff955d /HD44780.c
parent06b37e4a51870eca00dc50dfb12d8b2dae027071 (diff)
downloadlcd4linux-a7f2de2a1d1fb7b5c8b3ba277ea66f01e692dd18.tar.gz
[lcd4linux @ 2000-07-31 10:43:44 by reinelt]
some changes to support kernel-2.4 (different layout of various files in /proc)
Diffstat (limited to '')
-rw-r--r--HD44780.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/HD44780.c b/HD44780.c
index 8ed2f19..3278ad2 100644
--- a/HD44780.c
+++ b/HD44780.c
@@ -1,4 +1,4 @@
-/* $Id: HD44780.c,v 1.5 2000/07/31 06:46:35 reinelt Exp $
+/* $Id: HD44780.c,v 1.6 2000/07/31 10:43:44 reinelt Exp $
*
* driver for display modules based on the HD44780 chip
*
@@ -20,6 +20,10 @@
*
*
* $Log: HD44780.c,v $
+ * Revision 1.6 2000/07/31 10:43:44 reinelt
+ *
+ * some changes to support kernel-2.4 (different layout of various files in /proc)
+ *
* Revision 1.5 2000/07/31 06:46:35 reinelt
*
* eliminated some compiler warnings with glibc
@@ -68,7 +72,15 @@
#include <time.h>
#include <signal.h>
#include <errno.h>
+#ifdef HAVE_SYS_IO_H
#include <sys/io.h>
+#else
+#ifdef HAVE_ASM_IO_H
+#include <asm/io.h>
+#else
+#error "neither sys/io.h nor asm/io.h found!"
+#endif
+#endif
#include "debug.h"
#include "cfg.h"