Only include compat headers if we need them.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@793
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#include <sys/types.h>
#include <sys/socket.h>
+#ifndef HAVE_SRANDOMDEV
#include "compat/srandomdev.h"
+#endif
#include "heritage.h"
#include "shmlog.h"
+libh mgt_event.h
+-header(../../config.h)
+
// Fix strchr() semtics, it can only return NULL if arg2 != 0
-sem(strchr, 1p, type(1), 2n == 0 ? (@p < 1p) : (@p < 1p || @p == 0 ))
-I/usr/include \
-I. \
-I../../include \
- -DHAVE_KQUEUE \
flint.lnt \
*.c > $T 2>&1
#include <err.h> /* XXX */
+#ifndef HAVE_SETPROCTITLE
#include "compat/setproctitle.h"
+#endif
#include "heritage.h"
#include "mgt.h"
#include <string.h>
#include <unistd.h>
+#ifndef HAVE_VASPRINTF
#include "compat/vasprintf.h"
+#endif
+
#include "cli_priv.h"
#include "cli.h"
#include "vsb.h"
#include <string.h>
#include <unistd.h>
+#ifndef HAVE_ASPRINTF
#include "compat/asprintf.h"
+#endif
#include "shmlog.h"
#include "cache.h"
#include <string.h>
#include <unistd.h>
+#ifndef HAVE_STRLCPY
#include "compat/strlcpy.h"
+#endif
#include "heritage.h"
#include "mgt.h"