summaryrefslogtreecommitdiff
path: root/ext/libelf/elf_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/libelf/elf_update.c')
-rw-r--r--ext/libelf/elf_update.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/libelf/elf_update.c b/ext/libelf/elf_update.c
index 513789563..6959d3c3e 100644
--- a/ext/libelf/elf_update.c
+++ b/ext/libelf/elf_update.c
@@ -27,6 +27,9 @@
#include <sys/mman.h>
#include <sys/param.h>
+#ifdef __sun
+#include <sys/sysmacros.h>
+#endif
#include <assert.h>
#include <errno.h>