From: Peter Howkins Date: Sun, 11 Mar 2012 18:02:24 +0000 (+0000) Subject: Do not re-prototype strdup() X-Git-Tag: 2.2.0a~26^2~148 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=94eb7100d398fc0dfd2351fb412c816e276fadf7;p=oweals%2Fcde.git Do not re-prototype strdup() --- diff --git a/cde/lib/DtSvc/DtUtil1/DtsInit.c b/cde/lib/DtSvc/DtUtil1/DtsInit.c index 352969f5..151df1d2 100644 --- a/cde/lib/DtSvc/DtUtil1/DtsInit.c +++ b/cde/lib/DtSvc/DtUtil1/DtsInit.c @@ -73,7 +73,9 @@ #include
#include "DtSvcLock.h" +#if !defined(linux) extern char *strdup(const char *); +#endif static int cur_dc_count = 0; static int cur_da_count = 0; diff --git a/cde/lib/DtSvc/DtUtil1/DtsSort.c b/cde/lib/DtSvc/DtUtil1/DtsSort.c index c8297ef9..e912659c 100644 --- a/cde/lib/DtSvc/DtUtil1/DtsSort.c +++ b/cde/lib/DtSvc/DtUtil1/DtsSort.c @@ -58,8 +58,9 @@ #include "Dt/DtsDb.h" #include "Dt/Dts.h" +#if !defined(linux) extern char *strdup(const char *); - +#endif static char * get_value(DtDtsDbRecord *ce_entry, char *value)