-#ifdef NEED_STRLCPY
+#ifndef HAVE_STRLCPY
/*
* Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
* $DragonFly: src/lib/libc/string/strlcpy.c,v 1.4 2005/09/18 16:32:34 asmodai Exp $
*/
+#include "dfcompat.h"
+
#include <sys/types.h>
#include <string.h>
return(s - src - 1); /* count does not include NUL */
}
-#endif /* NEED_STRLCPY */
+#endif /* !HAVE_STRLCPY */
-#ifdef NEED_REALLOCF
+#ifndef HAVE_REALLOCF
/*-
* Copyright (c) 1998, M. Warner Losh <imp@freebsd.org>
return (nptr);
}
-#endif /* NEED_REALLOCF */
+#endif /* !HAVE_REALLOCF */
-#ifdef NEED_GETPROGNAME
+#ifndef HAVE_GETPROGNAME
#ifdef __GLIBC__
-#define __USE_GNU
#include <errno.h>
const char *
#error "no getprogname implementation available"
#endif
-#endif /* NEED_GETPROGNAME */
+#endif /* !HAVE_GETPROGNAME */