Do not re-prototype strdup()
authorPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 18:02:24 +0000 (18:02 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 18:02:24 +0000 (18:02 +0000)
cde/lib/DtSvc/DtUtil1/DtsInit.c
cde/lib/DtSvc/DtUtil1/DtsSort.c

index 352969f5d9032c5f75ca7a015fb8f019853ac193..151df1d216c85ff100e795bf6856c4b4967c1f73 100644 (file)
@@ -73,7 +73,9 @@
 #include <Dt/Dts.h>
 #include "DtSvcLock.h"
 
+#if !defined(linux)
 extern char    *strdup(const char *);
+#endif
 
 static int      cur_dc_count = 0;
 static int      cur_da_count = 0;
index c8297ef99a2f6bd3e76a9db50b13f18ce8c1832d..e912659cf16bbf1a1582e3d69409fda3e20b9dea 100644 (file)
@@ -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)