From 381073282961af9d11d6225fcf9dfdf650915acf Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Mon, 4 Jan 2021 20:48:48 +0100 Subject: [PATCH] lib9p: fix building on systems without capser PR: 252353 --- lib/lib9p/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/lib9p/Makefile b/lib/lib9p/Makefile index c909bdb1f781..c810ccd79e64 100644 --- a/lib/lib9p/Makefile +++ b/lib/lib9p/Makefile @@ -1,10 +1,15 @@ # $FreeBSD$ +.include + .PATH: ${.CURDIR}/../../contrib/lib9p -CFLAGS+= -DWITH_CASPER CFLAGS+= -I${.CURDIR} CFLAGS+= -I${.CURDIR}/../../contrib/lib9p +.if ${MK_CASPER} != "no" +CFLAGS+= -DWITH_CASPER +.endif + LIB= 9p PACKAGE= lib${LIB} SHLIB_MAJOR= 1