diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-01-15 04:02:32 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-01-15 04:02:32 +0100 |
commit | 533b9587fd577991e7b1994274c9c412c0887d31 (patch) | |
tree | 9c1f4b052fd3c85e99eaa1188a627c8a40ee8a65 | |
parent | 7155a4608da3d7b7e9032238c5296e56706b4734 (diff) | |
download | tdeedu-533b9587fd577991e7b1994274c9c412c0887d31.tar.gz tdeedu-533b9587fd577991e7b1994274c9c412c0887d31.zip |
Add ARM64 support
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | kstars/kstars/indi/webcam/port.cpp | 6 | ||||
-rw-r--r-- | kstars/kstars/indi/webcam/port.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/kstars/kstars/indi/webcam/port.cpp b/kstars/kstars/indi/webcam/port.cpp index 971cd9ad..793f0959 100644 --- a/kstars/kstars/indi/webcam/port.cpp +++ b/kstars/kstars/indi/webcam/port.cpp @@ -38,7 +38,7 @@ #endif /* LOCKING */ #ifdef __linux__ - #if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) + #if defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) #include <fcntl.h> #else #include <sys/io.h> @@ -75,7 +75,7 @@ port_t::port_t(int iport) { #endif /* LOCKING */ #ifdef LINUX -#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) +#if defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) if ((devport = open("/dev/port", O_RDWR)) < 0) { perror("open /dev/port"); return; @@ -119,7 +119,7 @@ port_t::~port_t(void) { unlock(port); #endif /* LOCKING */ #ifdef LINUX -#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) +#if defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) if (devport >= 0) close(devport); #else diff --git a/kstars/kstars/indi/webcam/port.h b/kstars/kstars/indi/webcam/port.h index 2e398019..4009ec2a 100644 --- a/kstars/kstars/indi/webcam/port.h +++ b/kstars/kstars/indi/webcam/port.h @@ -35,7 +35,7 @@ #include <unistd.h> #ifdef __linux__ - #if !defined(arm) && !defined(__hppa__) && !defined(__sparc__) && !defined(__ppc__) && !defined(__powerpc__) && !defined(__s390__) && !defined(__s390x__) && !defined(__mips__) && !defined(__mc68000__) + #if !defined(arm) && !defined(__aarch64__) && !defined(__hppa__) && !defined(__sparc__) && !defined(__ppc__) && !defined(__powerpc__) && !defined(__s390__) && !defined(__s390x__) && !defined(__mips__) && !defined(__mc68000__) #include <sys/io.h> #endif /* !arm */ #elif defined(TQNX) @@ -55,7 +55,7 @@ #error Please define a platform in the Makefile #endif -#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) +#if defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) static char ports_temp; #ifdef inb @@ -114,7 +114,7 @@ private: #ifdef FREEBSD FILE *devio; #endif -#if defined(__linux__) && (defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)) +#if defined(__linux__) && (defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)) int devport; #endif }; |