aboutgitcodebugslistschat
path: root/util.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-11-08 13:53:28 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-11-08 08:26:15 +0100
commitd64f25724399fbb4ba9d36eda7e17984a4c6c91c (patch)
tree080066a942830eb79b9abbb8fd4d4b7d213a3360 /util.c
parentb84cd05098275a7625223141d019f8af5a17323b (diff)
downloadpasst-d64f25724399fbb4ba9d36eda7e17984a4c6c91c.tar
passt-d64f25724399fbb4ba9d36eda7e17984a4c6c91c.tar.gz
passt-d64f25724399fbb4ba9d36eda7e17984a4c6c91c.tar.bz2
passt-d64f25724399fbb4ba9d36eda7e17984a4c6c91c.tar.lz
passt-d64f25724399fbb4ba9d36eda7e17984a4c6c91c.tar.xz
passt-d64f25724399fbb4ba9d36eda7e17984a4c6c91c.tar.zst
passt-d64f25724399fbb4ba9d36eda7e17984a4c6c91c.zip
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>
Diffstat (limited to 'util.c')
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index 3448f30..913f34b 100644
--- a/util.c
+++ b/util.c
@@ -28,6 +28,7 @@
#include <linux/errqueue.h>
#include <getopt.h>
+#include "linux_dep.h"
#include "util.h"
#include "iov.h"
#include "passt.h"