[CRIU] [PATCH] zdtm: define _GNU_SOURCE for zdtm_ct

Andrey Vagin avagin at openvz.org
Fri Jan 23 04:07:50 PST 2015


zdtm_ct.c:19:14: error: ‘CLONE_NEWNS’ undeclared (first use in this function)
  if (unshare(CLONE_NEWNS | CLONE_NEWPID | CLONE_NEWNET | CLONE_NEWIPC))

Reported-by: Mr Jenkins
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/Makefile.zdtm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/Makefile.zdtm b/test/Makefile.zdtm
index 24ddf39..576e088 100644
--- a/test/Makefile.zdtm
+++ b/test/Makefile.zdtm
@@ -1,4 +1,5 @@
 TST = $(shell cat zdtm-tst-list)
+CFLAGS += -D_GNU_SOURCE
 
 .FORCE:
 
-- 
1.9.3



More information about the CRIU mailing list