1diff --git a/elflink.c b/elflink.c 2index c39c04e..92729cc 100644 3--- a/elflink.c 4+++ b/elflink.c 5@@ -37,6 +37,7 @@ 6 #include <limits.h> 7 #include <elf.h> 8 #include <dlfcn.h> 9+#include <sys/stat.h> 10 11 #include "version.h" 12 #include "hugetlbfs.h" 13