From 8579ca1921f038d7e7c1e100709e0a35cf9d1a7d Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 8 May 2012 21:22:51 +0200 Subject: ldd.host: Fix compilation for STANDALONE support Signed-off-by: Bernhard Reutner-Fischer --- utils/porting.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/porting.h') diff --git a/utils/porting.h b/utils/porting.h index d4ead17d4..f1fdc70aa 100644 --- a/utils/porting.h +++ b/utils/porting.h @@ -45,6 +45,10 @@ #include #endif +#ifndef ARRAY_SIZE +# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) +#endif + /* For SunOS */ #ifndef PATH_MAX #define PATH_MAX _POSIX_PATH_MAX -- cgit v1.2.3