[COMMITTED] elf: Include <sys/param.h> in cache.c

Message ID 87h7otzn6k.fsf@oldenburg2.str.redhat.com
State Committed
Commit 880433de13fa31e52587720f81b762a6c7797e4e
Headers
Series [COMMITTED] elf: Include <sys/param.h> in cache.c |

Commit Message

Florian Weimer Dec. 10, 2020, 3:38 p.m. UTC
  The roundup macro is defined there.  Relying on an indirect
definition is brittle.

---
 elf/cache.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/elf/cache.c b/elf/cache.c
index b03c5319f8..88a730e1dc 100644
--- a/elf/cache.c
+++ b/elf/cache.c
@@ -29,6 +29,7 @@ 
 #include <stdint.h>
 #include <sys/fcntl.h>
 #include <sys/mman.h>
+#include <sys/param.h>
 #include <sys/stat.h>
 #include <sys/types.h>