[Lcdproc] Patch for header includes in ms6931.c

Markus Dolze bsdfan@nurfuerspam.de
Mon Sep 11 06:35:02 2006


This is a multi-part message in MIME format.
--------------040203050100020905010301
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

some systems (i.e. FreeBSD 4.11) define struct timeval in sys/time.h. 
The mentioned driver cannot be compiled then.

Attached is a patch which includes sys/time.h if possible.

It may be better to explicitly check for 'struct timeval', but I don't 
know how to do this with autotools.

Regards
Markus

--------------040203050100020905010301
Content-Type: text/plain;
 name="patch_server-drivers-ms6931.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch_server-drivers-ms6931.c"

Index: server/drivers/ms6931.c
===================================================================
RCS file: /cvsroot/lcdproc/lcdproc/server/drivers/ms6931.c,v
retrieving revision 1.10
diff -u -r1.10 ms6931.c
--- server/drivers/ms6931.c	27 Apr 2006 15:01:51 -0000	1.10
+++ server/drivers/ms6931.c	11 Sep 2006 06:10:00 -0000
@@ -37,6 +37,10 @@
 # include "config.h"
 #endif
 
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+#endif
+
 #include "lcd.h"
 #include "ms6931.h"
 #include "report.h"

--------------040203050100020905010301--