mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-10 10:11:39 -04:00
20 lines
266 B
C
20 lines
266 B
C
#include "port_before.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "port_after.h"
|
|
|
|
#ifndef NEED_STRDUP
|
|
int __bind_strdup_unneeded;
|
|
#else
|
|
char *
|
|
strdup(const char *src) {
|
|
char *dst = malloc(strlen(src) + 1);
|
|
|
|
if (dst)
|
|
strcpy(dst, src);
|
|
return (dst);
|
|
}
|
|
#endif
|
|
|
|
/*! \file */
|