summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dln.c b/dln.c
index 0b4ea6b..ccf74b5 100644
--- a/dln.c
+++ b/dln.c
@@ -172,6 +172,9 @@ dln_find_1(fname, path, exe_flag)
#ifndef N_COMM
# define N_COMM 0x12
#endif
+#ifndef N_MAGIC
+# define N_MAGIC(x) (x).a_magic
+#endif
#define INVALID_OBJECT(h) (N_MAGIC(h) != OMAGIC)