summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ConfigureChecks.cmake1
-rw-r--r--config.h.cmake3
-rw-r--r--kstars/kstars/indi/apogee/ApogeeLinux.h4
3 files changed, 8 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 0e0d3958..0df464b2 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -123,6 +123,7 @@ endif( BUILD_KIG AND WITH_KIG_PYTHON_SCRIPTING )
##### check for headers
check_include_file( stdint.h HAVE_STDINT_H )
+check_include_file( ieeefp.h HAVE_IEEEFP_H )
##### check for TIMEZONE_IS_INT
diff --git a/config.h.cmake b/config.h.cmake
index 8c61c4b8..0cd328e8 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -36,3 +36,6 @@
// Defined to 1 if timezone is available as a variable
#cmakedefine TIMEZONE_IS_INT 1
+
+// Defined to 1 if you have <ieeefp.h> header file.
+#cmakedefine HAVE_IEEEFP_H 1
diff --git a/kstars/kstars/indi/apogee/ApogeeLinux.h b/kstars/kstars/indi/apogee/ApogeeLinux.h
index d17e7bde..dd181027 100644
--- a/kstars/kstars/indi/apogee/ApogeeLinux.h
+++ b/kstars/kstars/indi/apogee/ApogeeLinux.h
@@ -10,6 +10,10 @@
#ifndef APOGEELINUX_H
#define APOGEELINUX_H
+#ifdef Q_OS_SOLARIS
+#include <sys/ioccom.h>
+#endif /* solaris */
+
#define APISA_READ_USHORT _IOR('a', 0x01, unsigned int)
#define APISA_READ_LINE _IOR('a', 0x02, unsigned int)
#define APISA_WRITE_USHORT _IOW('a', 0x03, unsigned int)