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