From 9477fba983bf5d00784b08880732870b3033574c Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Mon, 20 Dec 2004 16:58:34 +0000 Subject: [PATCH] Define __arysize for FreeBSD 4 buildworlds. --- usr.bin/make/make.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h index a8087789ab..0f3e2be9fa 100644 --- a/usr.bin/make/make.h +++ b/usr.bin/make/make.h @@ -37,7 +37,7 @@ * * from: @(#)make.h 8.3 (Berkeley) 6/13/95 * $FreeBSD: src/usr.bin/make/make.h,v 1.12.2.2 2001/02/13 03:13:58 will Exp $ - * $DragonFly: src/usr.bin/make/make.h,v 1.15 2004/12/17 08:13:30 okumoto Exp $ + * $DragonFly: src/usr.bin/make/make.h,v 1.16 2004/12/20 16:58:34 joerg Exp $ */ /*- @@ -60,6 +60,11 @@ #include "config.h" #include "buf.h" +/* buildworld needs this on FreeBSD */ +#ifndef __arysize +#define __arysize(ary) (sizeof(ary)/sizeof((ary)[0])) +#endif + /*- * The structure for an individual graph node. Each node has several * pieces of data associated with it. -- 2.35.2