summaryrefslogtreecommitdiff
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
parent64ab51965a95a64ee863cdffdfbc8881dca4c53c (diff)
downloadnasm-184cef59d63d504d735570e1d014e134f9905272.tar.gz
Placed guards around strdup declaration to avoid compiler errors on sane
systems.
-rw-r--r--rdoff/rdoff.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rdoff/rdoff.h b/rdoff/rdoff.h
index dd431263..d6c54b2b 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 */