From 184cef59d63d504d735570e1d014e134f9905272 Mon Sep 17 00:00:00 2001 From: Ed Beroset Date: Fri, 17 Dec 2004 00:55:19 +0000 Subject: [PATCH] Placed guards around strdup declaration to avoid compiler errors on sane systems. --- rdoff/rdoff.h | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.11.4.GIT