diff options
author | Glenn L McGrath | 2003-02-08 23:36:16 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-02-08 23:36:16 +0000 |
commit | a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd (patch) | |
tree | f15f2946e7d1694a0e92ca5df4addca986e4f40b /include/busybox.h | |
parent | 3aeaee33b6de00da1603a81fcebb15c5971b7c0a (diff) | |
download | busybox-a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd.zip busybox-a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd.tar.gz |
Patch from mathuria, compatability with solaris
Diffstat (limited to 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/busybox.h b/include/busybox.h index 1b69ef9..8285494 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))) |