]> 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 07:52:46 +0000 (09:52 +0200)
Fixes: https://github.com/karelzak/util-linux/issues/1406
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-cputype.c

index be16199e06fa1374722baaca8a8fa4fff3caacdf..3c162c6c2b847b5ba424600280cdf0ae3077682d 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"