Commit 61c5837f authored by Laurent Dufour's avatar Laurent Dufour Committed by Pavel Emelyanov

timerfd: fix hard definition of TFD_IOC_SET_TICKS

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: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e7d89a60
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define __CR_TIMERFD_H__ #define __CR_TIMERFD_H__
#include <time.h> #include <time.h>
#include <sys/ioctl.h>
#include "files.h" #include "files.h"
...@@ -34,7 +35,7 @@ extern int is_timerfd_link(char *link); ...@@ -34,7 +35,7 @@ extern int is_timerfd_link(char *link);
#endif #endif
#ifndef TFD_IOC_SET_TICKS #ifndef TFD_IOC_SET_TICKS
# define TFD_IOC_SET_TICKS 0x40085400 # define TFD_IOC_SET_TICKS _IOW('T', 0, u64)
#endif #endif
#endif /* __CR_TIMERFD_H__ */ #endif /* __CR_TIMERFD_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment