mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-22 10:30:14 -04:00
Solaris yacc puts "#line" directives as "# line", so remove the latter as the
former already is on other platforms. Also reduce Solaris const warnings by fixing the structure definition of yytoktype and the declaration of yyreds.
This commit is contained in:
parent
450e48205f
commit
5ba268d2ab
1 changed files with 3 additions and 2 deletions
|
|
@ -13,7 +13,7 @@
|
|||
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# $Id: Makefile.in,v 1.19 2000/08/01 19:12:10 tale Exp $
|
||||
# $Id: Makefile.in,v 1.20 2000/08/03 14:03:43 tale Exp $
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
|
@ -61,7 +61,8 @@ TARGETS = ${OBJS}
|
|||
confparser.c: confparser.y
|
||||
${YACC} -d ${srcdir}/confparser.y
|
||||
rm -f confparser.c confparser_p.h
|
||||
sed -e '/^\#line/d' -e 's/^\(char \*yy.*\[\]\)/const \1/' \
|
||||
sed -e '/^\# ?line/d' -e 's/^\(char \* ?yy.*\[\]\)/const \1/' \
|
||||
-e 's/{ \(char \*t_name; int t_val; } yytoktype;\)/{ const \1/' \
|
||||
< y.tab.c > confparser.c
|
||||
rm -f y.tab.c
|
||||
chmod a-w confparser.c
|
||||
|
|
|
|||
Loading…
Reference in a new issue