Placed guards around strdup declaration to avoid compiler errors on sane
authorEd Beroset <beroset@mindspring.com>
Fri, 17 Dec 2004 00:55:19 +0000 (00:55 +0000)
committerEd Beroset <beroset@mindspring.com>
Fri, 17 Dec 2004 00:55:19 +0000 (00:55 +0000)
systems.

rdoff/rdoff.h

index dd43126..d6c54b2 100644 (file)
@@ -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 */