summaryrefslogtreecommitdiff
path: root/rdoff/rdoff.h
diff options
context:
space:
mode:
authorEd Beroset <beroset@mindspring.com>2004-12-17 00:55:19 +0000
committerEd Beroset <beroset@mindspring.com>2004-12-17 00:55:19 +0000
commit184cef59d63d504d735570e1d014e134f9905272 (patch)
treea0b385bcdbc2b51e36f31c50bdc5b41821835a99 /rdoff/rdoff.h
parent64ab51965a95a64ee863cdffdfbc8881dca4c53c (diff)
downloadnasm-184cef59d63d504d735570e1d014e134f9905272.tar.gz
nasm-184cef59d63d504d735570e1d014e134f9905272.tar.bz2
nasm-184cef59d63d504d735570e1d014e134f9905272.zip
Placed guards around strdup declaration to avoid compiler errors on sane
systems.
Diffstat (limited to 'rdoff/rdoff.h')
-rw-r--r--rdoff/rdoff.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rdoff/rdoff.h b/rdoff/rdoff.h
index dd43126..d6c54b2 100644
--- a/rdoff/rdoff.h
+++ b/rdoff/rdoff.h
@@ -156,7 +156,9 @@ struct CommonRec {
#ifdef RDOFF_UTILS
/* Some systems don't define this automatically */
+#if !defined(strdup)
extern char *strdup(const char *);
+#endif
typedef union RDFHeaderRec {
char type; /* invariant throughout all below */