#include <err.h> /* XXX */
+#include "compat/setproctitle.h"
+
#include "heritage.h"
#include "mgt.h"
#include "cli.h"
# These functions are provided by libcompat on platforms where they
# are not available
AC_CHECK_FUNCS([asprintf vasprintf])
+AC_CHECK_FUNCS([setproctitle])
AC_CHECK_FUNCS([srandomdev])
AC_CHECK_FUNCS([strlcat strlcpy])
AC_CHECK_FUNCS([vis strvis strvisx])
cli_common.h \
cli_priv.h \
compat/asprintf.h \
+ compat/setproctitle.h \
compat/srandomdev.h \
compat/strlcat.h \
compat/strlcpy.h \
--- /dev/null
+/*
+ * $Id$
+ */
+
+#ifndef COMPAT_SETPROCTITLE_H_INCLUDED
+#define COMPAT_SETPROCTITLE_H_INCLUDED
+
+#ifndef HAVE_SETPROCTITLE
+void setproctitle(const char *fmt, ...);
+#endif
+
+#endif
libcompat_a_SOURCES = \
asprintf.c \
vasprintf.c \
+ setproctitle.c \
srandomdev.c \
strlcat.c \
strlcpy.c \
--- /dev/null
+/*
+ * $Id$
+ */
+
+#ifndef HAVE_SETPROCTITLE
+
+#include <stdarg.h>
+
+#include "compat/setproctitle.h"
+
+void
+setproctitle(const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ /* XXX */
+ va_end(ap);
+}
+#endif