From a6de1e5c85b8ee7df2c8cdaeef096bf0ea9048f3 Mon Sep 17 00:00:00 2001
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Date: Mon, 27 Jun 2011 09:15:41 +0000
Subject: [PATCH] Compile hastd and hastctl with capsicum support.

X-MFC after:	capsicum merge
---
 sbin/hastctl/Makefile | 1 +
 sbin/hastd/Makefile   | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sbin/hastctl/Makefile b/sbin/hastctl/Makefile
index b7b1db934813..af946a20ecaa 100644
--- a/sbin/hastctl/Makefile
+++ b/sbin/hastctl/Makefile
@@ -21,6 +21,7 @@ MAN=	hastctl.8
 
 NO_WFORMAT=
 CFLAGS+=-I${.CURDIR}/../hastd
+CFLAGS+=-DHAVE_CAPSICUM
 CFLAGS+=-DINET
 .if ${MK_INET6_SUPPORT} != "no"
 CFLAGS+=-DINET6
diff --git a/sbin/hastd/Makefile b/sbin/hastd/Makefile
index 1ffd0a244bc3..3c4eef18da4a 100644
--- a/sbin/hastd/Makefile
+++ b/sbin/hastd/Makefile
@@ -20,8 +20,9 @@ SRCS+=	y.tab.h
 MAN=	hastd.8 hast.conf.5
 
 NO_WFORMAT=
-CFLAGS+=-DPROTO_TCP_DEFAULT_PORT=8457
 CFLAGS+=-I${.CURDIR}
+CFLAGS+=-DHAVE_CAPSICUM
+CFLAGS+=-DPROTO_TCP_DEFAULT_PORT=8457
 CFLAGS+=-DINET
 .if ${MK_INET6_SUPPORT} != "no"
 CFLAGS+=-DINET6