From 610666ca3799e0d1de7abadec108f4683d59d55b Mon Sep 17 00:00:00 2001 From: Denis Kozadaev Date: Thu, 1 Jun 2023 21:25:31 +0300 Subject: [PATCH] SunOS cosmetic changes Signed-off-by: Denis Kozadaev --- ConfigureChecks.cmake | 1 + config.h.cmake | 3 +++ kstars/kstars/indi/apogee/ApogeeLinux.h | 4 ++++ 3 files changed, 8 insertions(+) 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 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 +#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)