]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: fix compilation against librtas
authorKarel Zak <kzak@redhat.com>
Mon, 9 Aug 2021 07:52:46 +0000 (09:52 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Aug 2021 09:54:38 +0000 (11:54 +0200)
Fixes: https://github.com/karelzak/util-linux/issues/1406
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-cputype.c

index e4dfe19f0844ac38d8316072ddeea01610af9e3f..7b5b109c9f1f0fd41c543a4c55ed575ae2895de0 100644 (file)
@@ -2,6 +2,10 @@
 #include <sys/utsname.h>
 #include <sys/personality.h>
 
+#if defined(HAVE_LIBRTAS)
+# include <librtas.h>
+#endif
+
 #include "lscpu.h"
 
 #include "fileutils.h"