[COMMITTED] elf: Add #include <sys/param.h> for MAX usage.

Carlos O'Donell carlos@redhat.com
Thu Jun 2 19:20:53 GMT 2022


In _dl_audit_pltenter we use MAX and so need to include param.h.

Tested on x86_64 and i686 without regression.
---
 elf/dl-audit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/dl-audit.c b/elf/dl-audit.c
index efc0492474..93770f50c7 100644
--- a/elf/dl-audit.c
+++ b/elf/dl-audit.c
@@ -22,6 +22,7 @@
 #include <dl-machine.h>
 #include <dl-runtime.h>
 #include <dl-fixup-attribute.h>
+#include <sys/param.h>
 
 void
 _dl_audit_activity_map (struct link_map *l, int action)
-- 
2.35.1



More information about the Libc-alpha mailing list