packages/net/chrony/patches/002-mips_ioc_constants.patch
florian 7da25bd58e Add ioc constants for other targets as well, should fix buildbot errors
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6738 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-28 10:02:24 +00:00

20 lines
694 B
Diff

diff -ru chrony-1.21.orig/io_linux.h chrony-1.21/io_linux.h
--- chrony-1.21.orig/io_linux.h 2005-08-11 22:32:54.000000000 +0200
+++ chrony-1.21/io_linux.h 2006-08-08 22:24:43.000000000 +0200
@@ -24,6 +24,15 @@
#define CHRONY_IOC_NONE 1U
#define CHRONY_IOC_READ 2U
#define CHRONY_IOC_WRITE 4U
+#elif defined(__mips__) || (__powerpc__) || (__arm__)
+#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