1
0
Fork 0
mirror of https://passt.top/passt synced 2025-06-08 16:45:35 +02:00

linux_dep: Move close_range() conditional handling to linux_dep.h

util.h has some #ifdefs and weak definitions to handle compatibility with
various kernel versions.  Move this to linux_dep.h which handles several
other similar cases.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
David Gibson 2024-11-08 13:53:28 +11:00 committed by Stefano Brivio
parent b84cd05098
commit d64f257243
3 changed files with 21 additions and 19 deletions

1
util.c
View file

@ -28,6 +28,7 @@
#include <linux/errqueue.h>
#include <getopt.h>
#include "linux_dep.h"
#include "util.h"
#include "iov.h"
#include "passt.h"