*/
#include <sys/types.h>
-
#include "config.h"
+#ifdef HAVE_BSD_STRING_H
+# include <bsd/string.h>
+#endif
+#ifdef HAVE_BSD_UNISTD_H
+# include <bsd/unistd.h>
+#endif
-#ifndef HAVE_REAL_STRLCPY
+#ifndef HAVE_STRLCPY
size_t strlcpy(char *dst, const char *src, size_t siz);
#endif
-#ifndef HAVE_REAL_STRLCAT
+#ifndef HAVE_STRLCAT
size_t strlcat(char *dst, const char *src, size_t siz);
#endif
-#ifndef HAVE_REAL_SETPROCTITLE
-#ifdef HAVE_SETPROCTITLE
-void setproctitle(const char *fmt, ...);
-#else
-#define setproctitle(fmt, ...)
-#endif
+#ifndef HAVE_SETPROCTITLE
+#define setproctitle(fmt, ...) /* no-op */
#endif
/* vim:set ts=3 sw=3 tw=78 expandtab: */