[CRIU] [PATCH] [v2] travis: workaround a compilation error for fedora rawhide

Andrei Vagin avagin at openvz.org
Wed Oct 4 02:23:01 MSK 2017


From: Andrei Vagin <avagin at virtuozzo.com>

In file included from /usr/include/linux/aio_abi.h:31:0,
                 from criu/cr-check.c:24:
/usr/include/sys/mount.h:35:3: error: expected identifier before numeric constant
   MS_RDONLY = 1,  /* Mount read-only.  */
   ^
make[2]: *** [/criu/scripts/nmk/scripts/build.mk:111: criu/cr-check.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [criu/Makefile:80: criu/built-in.o] Error 2
make: *** [Makefile:230: criu] Error 2

Cc: Adrian Reber <areber at redhat.com>
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 criu/cr-check.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/cr-check.c b/criu/cr-check.c
index 3bf335b34..5de360c8d 100644
--- a/criu/cr-check.c
+++ b/criu/cr-check.c
@@ -21,8 +21,8 @@
 #include <netinet/in.h>
 #include <sys/prctl.h>
 #include <sched.h>
-#include <linux/aio_abi.h>
 #include <sys/mount.h>
+#include <linux/aio_abi.h>
 
 #include "../soccr/soccr.h"
 
-- 
2.13.3



More information about the CRIU mailing list