From 94eb7100d398fc0dfd2351fb412c816e276fadf7 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sun, 11 Mar 2012 18:02:24 +0000 Subject: [PATCH] Do not re-prototype strdup() --- cde/lib/DtSvc/DtUtil1/DtsInit.c | 2 ++ cde/lib/DtSvc/DtUtil1/DtsSort.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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) -- 2.25.1