[xen staging] tools/tests: allow depriv-fd-checker to build with really old Linux headers

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] tools/tests: allow depriv-fd-checker to build with really old Linux headers

patchbot
commit e6963d9b6796000f51d2db40d1b375cf5012ffd5
Author:     Jan Beulich <[hidden email]>
AuthorDate: Fri Aug 31 01:02:42 2018 -0600
Commit:     Wei Liu <[hidden email]>
CommitDate: Thu Sep 13 17:19:11 2018 +0100

    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 <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
---
 tools/tests/depriv/depriv-fd-checker.c | 3 +++
 1 file changed, 3 insertions(+)

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 <sys/socket.h>
 #include <linux/if.h>
 #include <linux/if_tun.h>
+#ifndef TUNGETIFF
+#define TUNGETIFF _IOR('T', 210, unsigned int)
+#endif
 
 /* linux tun */
 
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog