summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/Makefile2
-rw-r--r--util/parsevar.pl4
2 files changed, 4 insertions, 2 deletions
diff --git a/util/Makefile b/util/Makefile
index 7d1073d7..b4788abd 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -2,6 +2,8 @@
.include "../pttbbs.mk"
+CFLAGS+= -DPTTBBS_UTIL
+
UTIL_OBJS= \
util_cache.o util_record.o util_passwd.o util_var.o \
util_stuff.o util_osdep.o util_args.o
diff --git a/util/parsevar.pl b/util/parsevar.pl
index d532c786..fe2f2dc0 100644
--- a/util/parsevar.pl
+++ b/util/parsevar.pl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: parsevar.pl,v 1.2 2003/06/20 22:06:30 in2 Exp $
+# $Id$
print << '.';
/*
* This header file is auto-generated from pttbbs/mbbsd/var.c .
@@ -16,7 +16,7 @@ while( <> ){
$_ = substr($_, 0, index($_, '=') - 1) if( index($_, '=') != -1 );
$_ .= ';' if( index($_, ';') == -1 );
print "extern $_\n";
- } elsif( /^\#/ && !/include/ ){
+ } elsif( /^\s*\#/ && !/include/ ){
print;
}
}