summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1994-11-01 08:27:44 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:30 +0900
commitc31025779da3020b9d1e9ad4c920e76b6b97d5fd (patch)
tree0823b3c8ef654b96e495d87933f356192de7d773 /dln.c
parent29f237a8b1df650089b54447f070726c75706b6f (diff)
version 0.55v0_55
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.55.tar.gz
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)