about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/elfs/elfloader_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/elfs/elfloader_private.h b/src/elfs/elfloader_private.h
index 6e1ebfeb..4487e972 100644
--- a/src/elfs/elfloader_private.h
+++ b/src/elfs/elfloader_private.h
@@ -168,6 +168,10 @@ typedef struct elfheader_s {
 #define STB_GNU_UNIQUE  10
 #endif
 
+#ifndef ELF64_ST_VISIBILITY
+#define ELF64_ST_VISIBILITY(o)   ((o) & 0x03)
+#endif
+
 elfheader_t* ParseElfHeader(FILE* f, const char* name, int exec);
 
 const char* BindSym(int bind);