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 <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Jan Beulich authored and Wei Liu committed 2018-09-13 17:19:11 +01:00
1 parent 0e2c886efa
commit e6963d9b67
1 file changed
+3
+3
View File
@@ -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 */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.