Parcourir la source

More GPL vs LGPL fixes (sysdeps/getpagesize.c), and some header
cleanups.
-Erik

Eric Andersen il y a 24 ans
Parent
commit
7186f9a670
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 4
      Makefile
  2. 3 0
      include/sys/param.h

+ 1 - 4
Makefile

@@ -1,4 +1,4 @@
-DIRS = headers error gtermcap misc stdio2 time getent regexp string termios sysdeps \
+DIRS = headers error misc stdio2 time getent regexp string termios sysdeps \
 malloc-simple net rpc
 malloc-simple net rpc
 
 
 all: libc.a
 all: libc.a
@@ -17,9 +17,6 @@ headers: dummy
 error: dummy
 error: dummy
 	make -C error
 	make -C error
 
 
-gtermcap: dummy
-	make -C gtermcap
-
 misc: dummy
 misc: dummy
 	make -C misc
 	make -C misc
 
 

+ 3 - 0
include/sys/param.h

@@ -22,6 +22,9 @@
 #define NR_FILE 32
 #define NR_FILE 32
 #endif
 #endif
 
 
+/* Number of Bits per BYte */
+#define NBBY		CHAR_BIT
+
 /* Bit map related macros.  */
 /* Bit map related macros.  */
 #define        setbit(a,i)     ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
 #define        setbit(a,i)     ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
 #define        clrbit(a,i)     ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
 #define        clrbit(a,i)     ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))