Add chrony from (#1388)
[openwrt/svn-archive/archive.git] / net / chrony / patches / 002-mips_ioc_constants.patch
1 diff -ru chrony-1.21.orig/io_linux.h chrony-1.21/io_linux.h
2 --- chrony-1.21.orig/io_linux.h 2005-08-11 22:32:54.000000000 +0200
3 +++ chrony-1.21/io_linux.h 2006-08-08 22:24:43.000000000 +0200
4 @@ -24,6 +24,15 @@
5 #define CHRONY_IOC_NONE 1U
6 #define CHRONY_IOC_READ 2U
7 #define CHRONY_IOC_WRITE 4U
8 +#elif defined(__mips__)
9 +#define CHRONY_IOC_NRBITS 8
10 +#define CHRONY_IOC_TYPEBITS 8
11 +#define CHRONY_IOC_SIZEBITS 13
12 +#define CHRONY_IOC_DIRBITS 3
13 +
14 +#define CHRONY_IOC_NONE 1U
15 +#define CHRONY_IOC_READ 2U
16 +#define CHRONY_IOC_WRITE 4U
17 #else
18 #error "I don't know the values of the _IOC_* constants for your architecture"
19 #endif