SunOS cosmetic changes

Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 91235e33ce)
r14.1.x
Denis Kozadaev 1 year ago committed by Michele Calgaro
parent 832a902d96
commit 365df97fda
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -151,9 +151,9 @@ if ( BUILD_KSIM )
check_include_file( "sys/mount.h" HAVE_SYS_MOUNT_H )
check_include_file( "mntent.h" HAVE_MNTENT_H )
check_include_file( "sys/ucred.h" HAVE_SYS_UCRED_H )
check_include_file( "sys/mnttab.h" HAVE_SYS_MNTTAB_H )
check_include_files( "stdio.h;sys/mnttab.h" HAVE_SYS_MNTTAB_H )
check_include_file( "sys/loadavg.h" HAVE_SYS_LOADAVG_H )
check_include_files( "sys/time.h;sys/loadavg.h" HAVE_SYS_LOADAVG_H )
check_function_exists( getloadavg HAVE_GETLOADAVG )
check_function_exists( statfs HAVE_STATFS )
check_function_exists( statvfs HAVE_STATVFS )

@ -31,6 +31,7 @@
#include "kmilointerface.h"
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include "i8k.h"

@ -20,6 +20,10 @@
#define I8K_PROC "/proc/i8k"
#define I8K_PROC_FMT "1.0"
#ifdef Q_OS_SOLARIS
#include <sys/ioccom.h>
#endif
#define I8K_BIOS_VERSION _IOR ('i', 0x80, int) /* broken: meant 4 bytes */
#define I8K_MACHINE_ID _IOR ('i', 0x81, int) /* broken: meant 16 bytes */
#define I8K_POWER_STATUS _IOR ('i', 0x82, size_t)

@ -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>

@ -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 */

Loading…
Cancel
Save