summaryrefslogtreecommitdiffstats
path: root/kstars
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-06-23 00:46:50 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-06-23 00:46:59 +0200
commit5c1789e2fd8066e4cd998d2e63e76acd105c4743 (patch)
treed78fd4bb7c5f2708c9816eb91373cc71296e2aa9 /kstars
parentaa80ed54af81ce0a8902348678fbde99515e7f83 (diff)
downloadtdeedu-5c1789e2fd8066e4cd998d2e63e76acd105c4743.tar.gz
tdeedu-5c1789e2fd8066e4cd998d2e63e76acd105c4743.zip
Add definitions for FreeBSD in kstars/indi/apogee.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 73148be818bbd9b8ee89a597467b89eab9f6b678)
Diffstat (limited to 'kstars')
-rw-r--r--kstars/kstars/indi/apogee/stdafx.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/kstars/kstars/indi/apogee/stdafx.h b/kstars/kstars/indi/apogee/stdafx.h
index acabaa43..23c27c21 100644
--- a/kstars/kstars/indi/apogee/stdafx.h
+++ b/kstars/kstars/indi/apogee/stdafx.h
@@ -29,10 +29,15 @@
#define Sleep(x) usleep(1000*x)
#endif
-
+#ifdef __FreeBSD__
+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#define ULONG unsigned long
+#define USHORT unsigned short
+#define PUSHORT unsigned short *
+#define Sleep(x) sleep(x)
#endif
-
-
-
-
+#endif