From: Jan Beulich Date: Fri, 31 Aug 2018 07:02:42 +0000 (-0600) Subject: tools/tests: allow depriv-fd-checker to build with really old Linux headers X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3270 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e6963d9b6796000f51d2db40d1b375cf5012ffd5;p=xen.git tools/tests: allow depriv-fd-checker to build with really old Linux headers Assuming it was intentional for this test utility, other than most other ones, to always be built, I think it would be nice if it didn't fail to build on really old distros just because of the lack of a TUNGETIFF definition. Signed-off-by: Jan Beulich Acked-by: Wei Liu --- diff --git a/tools/tests/depriv/depriv-fd-checker.c b/tools/tests/depriv/depriv-fd-checker.c index e57390f663..98a27a03d5 100644 --- a/tools/tests/depriv/depriv-fd-checker.c +++ b/tools/tests/depriv/depriv-fd-checker.c @@ -330,6 +330,9 @@ static void check_appendonly(void) { #include #include #include +#ifndef TUNGETIFF +#define TUNGETIFF _IOR('T', 210, unsigned int) +#endif /* linux tun */