Commit 091745a2 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Add a setproctitle() stub to libcompat.

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@773 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 54ea70ba
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <err.h> /* XXX */ #include <err.h> /* XXX */
#include "compat/setproctitle.h"
#include "heritage.h" #include "heritage.h"
#include "mgt.h" #include "mgt.h"
#include "cli.h" #include "cli.h"
......
...@@ -68,6 +68,7 @@ AC_CHECK_FUNCS([strptime]) ...@@ -68,6 +68,7 @@ AC_CHECK_FUNCS([strptime])
# These functions are provided by libcompat on platforms where they # These functions are provided by libcompat on platforms where they
# are not available # are not available
AC_CHECK_FUNCS([asprintf vasprintf]) AC_CHECK_FUNCS([asprintf vasprintf])
AC_CHECK_FUNCS([setproctitle])
AC_CHECK_FUNCS([srandomdev]) AC_CHECK_FUNCS([srandomdev])
AC_CHECK_FUNCS([strlcat strlcpy]) AC_CHECK_FUNCS([strlcat strlcpy])
AC_CHECK_FUNCS([vis strvis strvisx]) AC_CHECK_FUNCS([vis strvis strvisx])
......
...@@ -6,6 +6,7 @@ noinst_HEADERS = \ ...@@ -6,6 +6,7 @@ noinst_HEADERS = \
cli_common.h \ cli_common.h \
cli_priv.h \ cli_priv.h \
compat/asprintf.h \ compat/asprintf.h \
compat/setproctitle.h \
compat/srandomdev.h \ compat/srandomdev.h \
compat/strlcat.h \ compat/strlcat.h \
compat/strlcpy.h \ compat/strlcpy.h \
......
/*
* $Id$
*/
#ifndef COMPAT_SETPROCTITLE_H_INCLUDED
#define COMPAT_SETPROCTITLE_H_INCLUDED
#ifndef HAVE_SETPROCTITLE
void setproctitle(const char *fmt, ...);
#endif
#endif
...@@ -7,6 +7,7 @@ lib_LIBRARIES = libcompat.a ...@@ -7,6 +7,7 @@ lib_LIBRARIES = libcompat.a
libcompat_a_SOURCES = \ libcompat_a_SOURCES = \
asprintf.c \ asprintf.c \
vasprintf.c \ vasprintf.c \
setproctitle.c \
srandomdev.c \ srandomdev.c \
strlcat.c \ strlcat.c \
strlcpy.c \ strlcpy.c \
......
/*
* $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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment