diff options
Diffstat (limited to 'net-misc/chrony/files/chrony-1.21-io_linux.h.diff')
-rw-r--r-- | net-misc/chrony/files/chrony-1.21-io_linux.h.diff | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net-misc/chrony/files/chrony-1.21-io_linux.h.diff b/net-misc/chrony/files/chrony-1.21-io_linux.h.diff new file mode 100644 index 000000000000..3a9085c0f638 --- /dev/null +++ b/net-misc/chrony/files/chrony-1.21-io_linux.h.diff @@ -0,0 +1,43 @@ +Patched io_linux.h to add missing architectures. +#error "I don't know the values of the _IOC_* constants for your architecture" +Taken from Debian's chrony_1.21-2.diff.gz. +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=339764 +--- chrony-1.21/io_linux.h ++++ chrony-1.21/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) |