]> git.webhop.me Git - lcd4linux.git/commitdiff
fix cygwin compile
authormichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 26 Mar 2009 07:51:25 +0000 (07:51 +0000)
committermichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 26 Mar 2009 07:51:25 +0000 (07:51 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1001 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

thread.h

index 6845c59d9ccff2d64b612428530f3c08fbd85361..f902d7e60c58d27829b46739c31479c1a9f5b7b8 100644 (file)
--- a/thread.h
+++ b/thread.h
 #ifndef _THREAD_H_
 #define _THREAD_H_
 
+#ifdef CYGWIN
+
+#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
+
+#endif
 
 extern int thread_argc;
 extern char **thread_argv;