[CRIU] [PATCH] timerfd: fix hard definition of TFD_IOC_SET_TICKS

Laurent Dufour ldufour at linux.vnet.ibm.com
Fri Jun 12 08:31:25 PDT 2015


On PPC64, the hard definition of TFD_IOC_SET_TICKS doesn't match the kernel
one.
We should use the _IOW based on to be more flexible here.

Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
 include/timerfd.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/timerfd.h b/include/timerfd.h
index 41c683feab42..89525dc070ec 100644
--- a/include/timerfd.h
+++ b/include/timerfd.h
@@ -2,6 +2,7 @@
 #define __CR_TIMERFD_H__
 
 #include <time.h>
+#include <sys/ioctl.h>
 
 #include "files.h"
 
@@ -34,7 +35,7 @@ extern int is_timerfd_link(char *link);
 #endif
 
 #ifndef TFD_IOC_SET_TICKS
-# define TFD_IOC_SET_TICKS	0x40085400
+# define TFD_IOC_SET_TICKS	_IOW('T', 0, u64)
 #endif
 
 #endif /* __CR_TIMERFD_H__ */
-- 
1.9.1



More information about the CRIU mailing list