diff options
author | reinelt <> | 2000-04-05 05:58:36 +0000 |
---|---|---|
committer | reinelt <> | 2000-04-05 05:58:36 +0000 |
commit | ccb26ef39584226382cf4b5f895f4e2472975694 (patch) | |
tree | 59621ec2a3c57266e71ce8a34428e43186de0266 /XWindow.c | |
parent | 48e22a889b9e36c7a1e9a372cee0b0360c335627 (diff) | |
download | lcd4linux-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.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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; |