varnishadm_LDADD = \
$(top_builddir)/lib/libvarnish/libvarnish.la \
- $(top_builddir)/lib/libvarnishcompat/libvarnishcompat.la
+ $(top_builddir)/lib/libvarnishcompat/libvarnishcompat.la \
+ ${NET_LIBS}
$(top_builddir)/lib/libvarnish/libvarnish.la \
$(top_builddir)/lib/libvarnishcompat/libvarnishcompat.la \
$(top_builddir)/lib/libvcl/libvcl.la \
- ${DL_LIBS} ${PTHREAD_LIBS} ${LIBM}
+ ${DL_LIBS} ${PTHREAD_LIBS} ${NET_LIBS} ${LIBM}
#include <pthread.h>
#include <stdint.h>
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
#include "queue.h"
+#endif
+
#include "vsb.h"
#include "libvarnish.h"
*/
#include <pthread.h>
+
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
#include "queue.h"
+#endif
struct listen_sock {
TAILQ_ENTRY(listen_sock) list;
*/
#include <poll.h>
+
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
#include "queue.h"
+#endif
struct ev;
struct evbase;
#include "compat/asprintf.h"
#endif
#include "vsb.h"
+
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
#include "queue.h"
+#endif
#include "libvcl.h"
#include "cli.h"
* $Id$
*/
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
#include "queue.h"
+#endif
struct stevedore;
struct sess;
$(top_builddir)/lib/libvarnish/libvarnish.la \
$(top_builddir)/lib/libvarnishcompat/libvarnishcompat.la \
$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
- ${PTHREAD_LIBS}
-
+ ${PTHREAD_LIBS} ${NET_LIBS}
#include <string.h>
#include <unistd.h>
-#include "libvarnish.h"
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
#include "queue.h"
+#endif
+
+#include "libvarnish.h"
#include "varnishapi.h"
#include "vss.h"
#include <unistd.h>
#include <limits.h>
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
+#include "queue.h"
+#endif
+
#include "vsb.h"
#include "libvarnish.h"
#include "shmlog.h"
-#include "queue.h"
#include "varnishapi.h"
struct top {
LIBS="${save_LIBS}"
AC_SUBST(PTHREAD_LIBS)
+save_LIBS="${LIBS}"
+LIBS=""
+AC_CHECK_LIB(socket, socket)
+AC_CHECK_LIB(getaddrinfo, ns)
+NET_LIBS="${LIBS}"
+LIBS="${save_LIBS}"
+AC_SUBST(NET_LIBS)
+
AC_CHECK_LIBM
AC_SUBST(LIBM)
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
+AC_CHECK_HEADERS([sys/queue.h])
AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([sys/mount.h])
AC_CHECK_HEADERS([sys/vfs.h])
libvarnish_la_CFLAGS = -include config.h
-libvarnish_la_LIBADD = ${RT_LIBS}
+libvarnish_la_LIBADD = ${RT_LIBS} ${NET_LIBS}
* and all the rest...
*/
+#include <sys/stat.h>
+
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
-#include <sys/stat.h>
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
+#include "queue.h"
+#endif
#include "vsb.h"
-#include "queue.h"
#include "vcc_priv.h"
#include "vcc_compile.h"
* $Id$
*/
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
#include "queue.h"
+#endif
+
#include "vcl_returns.h"
#define INDENT 2
#include <stdlib.h>
#include <string.h>
-#include "vsb.h"
+#ifdef HAVE_SYS_QUEUE_H
+#include <sys/queue.h>
+#else
#include "queue.h"
+#endif
+
+#include "vsb.h"
#include "libvarnish.h"
#include "vcc_priv.h"