]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/build: also include BTF status
authorMike Yuan <me@yhndnzj.com>
Sun, 15 Sep 2024 14:04:32 +0000 (16:04 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Sep 2024 01:42:16 +0000 (10:42 +0900)
src/basic/build.c

index 50e975e80df16a275c451e49bb46bd0068d95595..bb9b4185f01e51e9e83181bbc27eb523624ca2d3 100644 (file)
@@ -221,6 +221,12 @@ const char* const systemd_features =
         " -BPF_FRAMEWORK"
 #endif
 
+#if HAVE_VMLINUX_H
+        " +BTF"
+#else
+        " -BTF"
+#endif
+
 #if HAVE_XKBCOMMON
         " +XKBCOMMON"
 #else
@@ -247,7 +253,7 @@ const char* const systemd_features =
 
         ;
 
-static char *systemd_features_with_color(void) {
+static charsystemd_features_with_color(void) {
         const char *p = systemd_features;
         _cleanup_free_ char *ret = NULL;
         int r;