#include "port_before.h" #include #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