From fe653a4333128f8d4278d374941f7dc37171bc0e Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Fri, 30 Sep 2011 15:56:02 +0000 Subject: [PATCH] fixed nulldap problem in include file --- include/ncconfigure.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/ncconfigure.h b/include/ncconfigure.h index f83d1935b..6a554d738 100644 --- a/include/ncconfigure.h +++ b/include/ncconfigure.h @@ -23,6 +23,15 @@ extern char* strdup(const char*); #endif /* handle null arguments */ +#ifndef nulldup +#ifdef HAVE_STRDUP +#define nulldup(s) ((s)==NULL?NULL:strdup(s)) +#else +char *nulldup(const char* s); +#endif +#endif + + #ifndef nulldup #define nulldup(s) ((s)==NULL?NULL:strdup(s)) #endif