From: Richard P. Curnow Date: Sun, 22 Jan 2006 23:36:16 +0000 (+0000) Subject: More architectures in io_linux.h (John Hasler) X-Git-Tag: mandriva-1.22~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5c3a01aee6717aa4e8b7d545e39545f0e2f39a0;p=thirdparty%2Fchrony.git More architectures in io_linux.h (John Hasler) --- diff --git a/io_linux.h b/io_linux.h index c6f6f306..4efe6372 100644 --- a/io_linux.h +++ b/io_linux.h @@ -6,26 +6,24 @@ /* Hmm. These constants vary a bit between systems. */ /* (__sh__ includes both sh and sh64) */ -#if defined(__i386__) || defined(__sh__) +#if defined(__alpha__) || defined(__sparc__) || defined(__mips__) || defined(__ppc__) || defined(__ppc64__) || defined(__sparc64__) #define CHRONY_IOC_NRBITS 8 #define CHRONY_IOC_TYPEBITS 8 -#define CHRONY_IOC_SIZEBITS 14 +#define CHRONY_IOC_SIZEBITS 13 #define CHRONY_IOC_DIRBITS 2 -#define CHRONY_IOC_NONE 0U -#define CHRONY_IOC_WRITE 1U -#define CHRONY_IOC_READ 2U -#elif defined(__alpha__) || defined(__sparc__) +#define CHRONY_IOC_NONE 1U +#define CHRONY_IOC_READ 2U +#define CHRONY_IOC_WRITE 4U +#else #define CHRONY_IOC_NRBITS 8 #define CHRONY_IOC_TYPEBITS 8 -#define CHRONY_IOC_SIZEBITS 13 +#define CHRONY_IOC_SIZEBITS 14 #define CHRONY_IOC_DIRBITS 2 -#define CHRONY_IOC_NONE 1U -#define CHRONY_IOC_READ 2U -#define CHRONY_IOC_WRITE 4U -#else -#error "I don't know the values of the _IOC_* constants for your architecture" +#define CHRONY_IOC_NONE 0U +#define CHRONY_IOC_WRITE 1U +#define CHRONY_IOC_READ 2U #endif #define CHRONY_IOC_NRMASK ((1 << CHRONY_IOC_NRBITS)-1)