summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/strdup.c
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2002-10-29 19:58:12 +0000
committerroberto <roberto@FreeBSD.org>2002-10-29 19:58:12 +0000
commitf77146900e35a78aaabf5f88d47b7675304c8445 (patch)
treedaab9e5ccc14bec1f0fee71e35464e6040c6756f /contrib/ntp/libntp/strdup.c
parent40b8e415eb0f835a9dd7a473ddf134ec67877fd7 (diff)
downloadFreeBSD-src-f77146900e35a78aaabf5f88d47b7675304c8445.zip
FreeBSD-src-f77146900e35a78aaabf5f88d47b7675304c8445.tar.gz
Virgin import of ntpd 4.1.1a
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