Fix Appveyor build: lib/hx509

This commit is contained in:
Nicolas Williams
2017-05-26 16:42:00 -05:00
committed by Viktor Dukhovni
parent 5a13323b68
commit c551ad9458
3 changed files with 20 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
########################################################################
#
# Copyright (c) 2009-2016, Secure Endpoints Inc.
# Copyright (c) 2009-2017, Secure Endpoints Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -192,7 +192,7 @@ $(OBJ)\sel-gram.c: sel-gram.y
$(YACC) -o $@ --defines=$(OBJ)\sel-gram.h sel-gram.y
$(OBJ)\sel-lex.c: sel-lex.l
$(LEX) -o$@ sel-lex.l
$(LEX) -P_hx509_sel_yy -o$@ sel-lex.l
all:: $(INCFILES) $(LIBHX509)

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008 Kungliga Tekniska Högskolan
* Copyright (c) 2017 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -39,6 +39,18 @@
#include <stdlib.h>
#include <hx_locl.h>
#if !defined(yylex)
#define yylex _hx509_sel_yylex
#define yywrap _hx509_sel_yywrap
#endif
#if !defined(yyparse)
#define yyparse _hx509_sel_yyparse
#define yyerror _hx509_sel_yyerror
#define yylval _hx509_sel_yylval
#define yychar _hx509_sel_yychar
#define yydebug _hx509_sel_yydebug
#define yynerrs _hx509_sel_yynerrs
#endif
%}

View File

@@ -1,6 +1,6 @@
%{
/*
* Copyright (c) 2004, 2008 Kungliga Tekniska Högskolan
* Copyright (c) 2004 - 2017 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -120,6 +120,10 @@ handle_string(void)
return strdup(x);
}
#if !defined(yywrap)
#define yywrap _hx509_sel_yywrap
#endif
int
yywrap ()
{