summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp/strdup.c')
-rw-r--r--contrib/ntp/libntp/strdup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/ntp/libntp/strdup.c b/contrib/ntp/libntp/strdup.c
index 08ffc2f..2e26ba7 100644
--- a/contrib/ntp/libntp/strdup.c
+++ b/contrib/ntp/libntp/strdup.c
@@ -1,6 +1,11 @@
+#include "ntp_malloc.h"
+
+#if !HAVE_STRDUP
#define NULL 0
+char *strdup(const char *s);
+
char *
strdup(
const char *s
@@ -18,3 +23,6 @@ strdup(
}
return(cp);
}
+#else
+int strdup_bs;
+#endif
OpenPOWER on IntegriCloud