[CRIU] [PATCH 2/2] make: Introduce compile time include/config.h generation
Cyrill Gorcunov
gorcunov at openvz.org
Fri May 3 11:29:44 EDT 2013
It's being reported that some systems (as Ubuntu 13.04) already
have struct tcp_repair_opt definition in their system headers.
| sk-tcp.c:25:8: error: redefinition of struct tcp_repair_opt
| sk-tcp.c:31:2: error: redeclaration of enumerator TCP_NO_QUEUE
So add a facility for compile time testing for reported entities
to be present on a system. For this we generate include/config.h
where all tested entries will lay and source code need to include
it only in places where really needed.
Reported-by: Vasily Averin <vvs at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
Makefile | 7 +++++--
Makefile.config | 15 +++++++++++++++
scripts/feature-tests.mak | 21 +++++++++++++++++++++
sk-tcp.c | 3 +++
4 files changed, 44 insertions(+), 2 deletions(-)
create mode 100644 Makefile.config
create mode 100644 scripts/feature-tests.mak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-make-Introduce-compile-time-include-config.h-generat.patch
Type: text/x-patch
Size: 2491 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130503/0ec09948/attachment.bin>
More information about the CRIU
mailing list