aboutsummaryrefslogtreecommitdiffstats
path: root/XWindow.c
diff options
context:
space:
mode:
authorreinelt <>2000-04-05 05:58:36 +0000
committerreinelt <>2000-04-05 05:58:36 +0000
commitccb26ef39584226382cf4b5f895f4e2472975694 (patch)
tree59621ec2a3c57266e71ce8a34428e43186de0266 /XWindow.c
parent48e22a889b9e36c7a1e9a372cee0b0360c335627 (diff)
downloadlcd4linux-ccb26ef39584226382cf4b5f895f4e2472975694.tar.gz
[lcd4linux @ 2000-04-05 05:58:36 by reinelt]
fixed bug in XWindow.c: union semun isn't defined with glibc-2.1
Diffstat (limited to 'XWindow.c')
-rw-r--r--XWindow.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/XWindow.c b/XWindow.c
index dd7e518..3be439f 100644
--- a/XWindow.c
+++ b/XWindow.c
@@ -1,4 +1,4 @@
-/* $Id: XWindow.c,v 1.16 2000/04/03 23:53:23 herp Exp $
+/* $Id: XWindow.c,v 1.17 2000/04/05 05:58:36 reinelt Exp $
*
* X11 Driver for LCD4Linux
*
@@ -20,6 +20,10 @@
*
*
* $Log: XWindow.c,v $
+ * Revision 1.17 2000/04/05 05:58:36 reinelt
+ *
+ * fixed bug in XWindow.c: union semun isn't defined with glibc-2.1
+ *
* Revision 1.16 2000/04/03 23:53:23 herp
* fixed a bug that caused pixel-errors ("fliegendreck") under high load
*
@@ -102,6 +106,16 @@
#include "display.h"
#include "pixmap.h"
+/* glibc 2.1 requires defining semun ourselves */
+#ifdef _SEM_SEMUN_UNDEFINED
+union semun {
+ int val;
+ struct semid_ds *buf;
+ unsigned short int *array;
+ struct seminfo *__buf;
+};
+#endif
+
#define BARS ( BAR_L | BAR_R | BAR_U | BAR_D | BAR_H2 | BAR_V2 )
static LCD Lcd;