Comment out PW_COMPACT, cause binary incompatibilities with *BSD
authorAndrey Chernov <ache@FreeBSD.org>
Thu, 5 May 1994 18:28:18 +0000 (18:28 +0000)
committerAndrey Chernov <ache@FreeBSD.org>
Thu, 5 May 1994 18:28:18 +0000 (18:28 +0000)
Add PW_COMPACT to CFLAGS, if PW_COMPACT environment variable exists
It is part of changes to make PW_COMPACT an option

usr.sbin/pwd_mkdb/Makefile
usr.sbin/pwd_mkdb/pwd_mkdb.c

index 645728b..616f105 100644 (file)
@@ -3,5 +3,8 @@
 PROG=  pwd_mkdb
 SRCS=  pw_scan.c pwd_mkdb.c
 MAN8=  pwd_mkdb.8
 PROG=  pwd_mkdb
 SRCS=  pw_scan.c pwd_mkdb.c
 MAN8=  pwd_mkdb.8
+.if defined (PW_COMPACT)
+CFLAGS+=-DPW_COMPACT
+.endif
 
 .include <bsd.prog.mk>
 
 .include <bsd.prog.mk>
index e1f0442..ffad7ed 100644 (file)
@@ -53,7 +53,7 @@ static char sccsid[] = "@(#)pwd_mkdb.c        5.5 (Berkeley) 5/6/91";
 #include <string.h>
 #include <stdlib.h>
 
 #include <string.h>
 #include <stdlib.h>
 
-#define PW_COMPACT
+/* #define PW_COMPACT */
 /* Compact pwd.db/spwd.db structure by Alex G. Bulushev, bag@demos.su */
 #ifdef PW_COMPACT
 # define HI_BSIZE 1024
 /* Compact pwd.db/spwd.db structure by Alex G. Bulushev, bag@demos.su */
 #ifdef PW_COMPACT
 # define HI_BSIZE 1024