From 797372b0f499f35f7cf518543ea3ed281e379d3d Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 11 Sep 2008 04:02:49 +0000 Subject: strdup() clone for systems/configurations which lack it --- ares_private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ares_private.h') diff --git a/ares_private.h b/ares_private.h index 38269b0..877985b 100644 --- a/ares_private.h +++ b/ares_private.h @@ -94,6 +94,11 @@ #include "ares_ipv6.h" #include "ares_llist.h" +#ifndef HAVE_STRDUP +# include "ares_strdup.h" +# define strdup(ptr) ares_strdup(ptr) +#endif + struct query; struct send_request { -- cgit v1.2.3