summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sys2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h
index c1fa63408..b7afd5822 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -547,6 +547,10 @@ enum
# define PID_T_MAX TYPE_MAXIMUM (pid_t)
#endif
+#ifndef CHAR_BIT
+# define CHAR_BIT 8
+#endif
+
/* Use this to suppress gcc's `...may be used before initialized' warnings. */
#ifdef lint
# define IF_LINT(Code) Code