Ticket #77 (new enhancement)

Opened 18 months ago

Last modified 17 months ago

enable cygwin to compile

Reported by: michu Owned by: michael
Priority: normal Component: lcd4linux
Version: Severity: normal
Keywords: Cc:

Description

I need lcd4linux on my windows workstation... It works fine with the NULL and X11 driver and a bit buggy with the png driver. The patch is here

Index: thread.h
===================================================================
--- thread.h    (revision 803)
+++ thread.h    (working copy)
@@ -30,6 +30,21 @@
 #ifndef _THREAD_H_
 #define _THREAD_H_

+#ifndef HAVE_UNION_SEMUN
+union semun
+{
+    int    val;
+    struct semid_ds *buf;
+    unsigned short *array;
+};
+#endif
+
+#ifndef SHM_R
+    #define SHM_R 0400
+#endif
+#ifndef SHM_W
+    #define SHM_W 0660
+#endif

 extern int thread_argc;
 extern char **thread_argv;

I think a check is nessesary, if those 3 .h file exist

#include <cygwin/sem.h>
#include <cygwin/shm.h>
#include <cygwin/ipc.h>

use them in the thread.c file

Attachments

Add/Change #77 (enable cygwin to compile)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.