summaryrefslogtreecommitdiff
path: root/include/busybox.h
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-02-08 23:36:16 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-02-08 23:36:16 +0000
commita88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd (patch)
treef15f2946e7d1694a0e92ca5df4addca986e4f40b /include/busybox.h
parent3aeaee33b6de00da1603a81fcebb15c5971b7c0a (diff)
downloadbusybox-w32-a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd.tar.gz
busybox-w32-a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd.tar.bz2
busybox-w32-a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd.zip
Patch from mathuria, compatability with solaris
Diffstat (limited to 'include/busybox.h')
-rw-r--r--include/busybox.h2
1 files changed, 2 insertions, 0 deletions
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[];
95 95
96/* Bit map related macros -- libc5 doens't provide these... sigh. */ 96/* Bit map related macros -- libc5 doens't provide these... sigh. */
97#ifndef setbit 97#ifndef setbit
98#ifndef NBBY
98#define NBBY CHAR_BIT 99#define NBBY CHAR_BIT
100#endif
99#define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) 101#define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
100#define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) 102#define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
101#define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) 103#define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY)))