Skip to contentSkip to conversation

libltpvdso: Guard the sysv/auxv.h too

PATCH New Cyril Hrubis 1 participant 1 message Jun 26, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libltpvdso: Guard the sysv/auxv.h too

Obviously this header is only present when the getauxval() function is present. This should be the last fix.

---
 libs/libltpvdso/vdso_helpers.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
libs/libltpvdso/vdso_helpers.c +4 -1
index 635270097..208c12f65 100644
@@ -8,9 +8,12 @@
 #include "tst_test.h"
 
 #include "parse_vdso.h"
-#include <sys/auxv.h>
 #include "config.h"
 
+#ifdef HAVE_GETAUXVAL
+# include <sys/auxv.h>
+#endif /* HAVE_GETAUXVAL */
+
 static unsigned long sysinfo_ehdr;
 
 static void vdso_init(void)
Signature · 1 line
2.26.2