From a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sat, 8 Feb 2003 23:36:16 +0000 Subject: Patch from mathuria, compatability with solaris --- include/busybox.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/busybox.h') diff --git a/include/busybox.h b/include/busybox.h index 1b69ef955..8285494ef 100644 --- a/include/busybox.h +++ b/include/busybox.h @@ -95,7 +95,9 @@ extern const struct BB_applet applets[]; /* Bit map related macros -- libc5 doens't provide these... sigh. */ #ifndef setbit +#ifndef NBBY #define NBBY CHAR_BIT +#endif #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) -- cgit v1.2.3