]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix linux_io.h for MIPS
authorBernhard Weiss <lisnablagh@web.de>
Sat, 24 Sep 2005 16:17:56 +0000 (18:17 +0200)
committerRichard P. Curnow <rc@rc0.org.uk>
Fri, 14 Apr 2006 23:07:43 +0000 (00:07 +0100)
Bernard Weiss writes:
I managed to compile the chrony 1.21 package for the MIPS architecture.
For the package to compile I had to add the following lines to io_linux.h:

[patch]

These values are taken from the ioctl.h file of linux 2.4.30 for the MIPS arch
(__ASM_MIPS_IOCTL_H).

io_linux.h

index b686c135450d17d1732c5edc0264a3f1e7c662bd..603898c7643389eee615c25ac82d6cd84888fb7b 100644 (file)
@@ -15,7 +15,8 @@
 #define CHRONY_IOC_NONE        0U
 #define CHRONY_IOC_WRITE       1U
 #define CHRONY_IOC_READ        2U
-#elif defined(__alpha__) || defined(__sparc__) || defined(__mips__) || defined(__ppc__) || defined(__ppc64__) || defined(__sparc64__)
+
+#elif defined(__alpha__) || defined(__sparc__) || defined(__ppc__) || defined(__ppc64__) || defined(__sparc64__)
 #define CHRONY_IOC_NRBITS      8
 #define CHRONY_IOC_TYPEBITS    8
 #define CHRONY_IOC_SIZEBITS    13
 #define CHRONY_IOC_NONE        1U
 #define CHRONY_IOC_READ        2U
 #define CHRONY_IOC_WRITE       4U
+
+#elif defined(__mips__) || defined(__mips32__)
+#define CHRONY_IOC_NRBITS       8
+#define CHRONY_IOC_TYPEBITS     8
+#define CHRONY_IOC_SIZEBITS     13
+#define CHRONY_IOC_DIRBITS      3
+#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"
 #endif