aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-03-26 07:51:25 +0000
committermichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-03-26 07:51:25 +0000
commite535da4cd01aa8b4e35958707d9bafe7cdc6b24d (patch)
tree67af3491a456126a266ad8a03929983b6fa15ea2
parent9ad3a788ea73837504bf56d1c89f2fb6ed059f90 (diff)
downloadlcd4linux-e535da4cd01aa8b4e35958707d9bafe7cdc6b24d.tar.gz
fix cygwin compile
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1001 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--thread.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/thread.h b/thread.h
index 6845c59..f902d7e 100644
--- a/thread.h
+++ b/thread.h
@@ -30,6 +30,25 @@
#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;