diff options
author | Denis Kozadaev <denis@dilos.org> | 2023-05-28 20:23:52 +0300 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-05-29 19:54:20 +0900 |
commit | 365df97fda0b511dbee97c3a7be84bc436b67a42 (patch) | |
tree | a80688ccc54fb55ce78af407d6f3980e700b4853 /kmilo/kmilo_kvaio | |
parent | 832a902d96ac6f746307256513487a7f17a29323 (diff) | |
download | tdeutils-365df97fda0b511dbee97c3a7be84bc436b67a42.tar.gz tdeutils-365df97fda0b511dbee97c3a7be84bc436b67a42.zip |
SunOS cosmetic changes
Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 91235e33ce72207758973dd73ef91f3bcb5122b6)
Diffstat (limited to 'kmilo/kmilo_kvaio')
-rw-r--r-- | kmilo/kmilo_kvaio/kvaiodriverinterface.cpp | 7 | ||||
-rw-r--r-- | kmilo/kmilo_kvaio/sonypi.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/kmilo/kmilo_kvaio/kvaiodriverinterface.cpp b/kmilo/kmilo_kvaio/kvaiodriverinterface.cpp index c10c11c..eb8c5e4 100644 --- a/kmilo/kmilo_kvaio/kvaiodriverinterface.cpp +++ b/kmilo/kmilo_kvaio/kvaiodriverinterface.cpp @@ -29,7 +29,14 @@ extern "C" { #include <unistd.h> #include <errno.h> #include <sys/ioctl.h> +#ifdef Q_OS_LINUX #include <linux/types.h> +#elif defined(Q_OS_SOLARIS) +#include <sys/ioccom.h> +#define O_ASYNC O_DIRECT +typedef uint8_t __u8; +typedef uint16_t __u16; +#endif #include <X11/Xlib.h> //#include <X11/extensions/XTest.h> diff --git a/kmilo/kmilo_kvaio/sonypi.h b/kmilo/kmilo_kvaio/sonypi.h index 43cfc80..658c5ed 100644 --- a/kmilo/kmilo_kvaio/sonypi.h +++ b/kmilo/kmilo_kvaio/sonypi.h @@ -36,7 +36,9 @@ #ifndef _SONYPI_H_ #define _SONYPI_H_ +#ifdef Q_OS_LINUX #include <linux/types.h> +#endif /* Linux */ /* events the user application reading /dev/sonypi can use */ |