aboutsummaryrefslogtreecommitdiffstats
path: root/HD44780.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-07-31 10:43:44 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-07-31 10:43:44 +0000
commit7ff246c0458df37567dcefebfd9a720f9b98cdb7 (patch)
treea9166e080f3ac5e3675bfa3fad68942d47ff955d /HD44780.c
parent5369cdf6f69abc9a33581e8209f4fc1d2ea468f1 (diff)
downloadlcd4linux-7ff246c0458df37567dcefebfd9a720f9b98cdb7.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) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@60 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'HD44780.c')
-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"