- fixed compilation issues with bison

OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=23
This commit is contained in:
Michal Hrusecky (old before rename to _miska_) 2013-01-04 12:05:22 +00:00 committed by Git OBS Bridge
parent 12a823a149
commit 0ced1ba962
3 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,22 @@
Index: Drivers/nn/yyparse.y
===================================================================
--- Drivers/nn/yyparse.y.orig
+++ Drivers/nn/yyparse.y
@@ -36,7 +36,7 @@ static char sccsid[]
# define yylex() nnsql_yylex(&yylval, pyyenv)
#endif
-#define yyparse(x) nnsql_yyparse (pyyenv)
+#define yyparse(x) nnsql_yyparse (yyenv_t* pyyenv)
#define yyerror(msg) nnsql_yyerror (pyyenv, msg)
#define SETYYERROR(env, code) { env->pstmt->errcode = code; \
env->pstmt->errpos = env->errpos;}
@@ -1197,7 +1197,7 @@ static int add_ins_value( yystmt_t* pstm
{
if( !idx )
{
- MEM_FREE(pstmt->ins_values)
+ MEM_FREE(pstmt->ins_values);
pstmt->ins_values = (node_t*)MEM_ALLOC( FILTER_CHUNK_SIZE * sizeof(node_t));
}
else if( ! idx%FILTER_CHUNK_SIZE )

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 4 13:02:10 CET 2013 - mhrusecky@suse.cz
- fixed compilation issues with bison
-------------------------------------------------------------------
Tue Nov 27 09:04:52 UTC 2012 - cfarrell@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package unixODBC
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -44,6 +44,7 @@ Patch6: unixODBC-nonvoid.patch
Patch7: unixODBC-gccwarnings.patch
Patch10: %{name}-2.3.1-libodbcinst-exports.patch
Patch13: %{name}-2.3.1-uninitialized.patch
Patch15: %{name}-2.3.1-bison.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package devel
@ -88,6 +89,7 @@ Authors:
%patch7
%patch10
%patch13
%patch15
install -m 644 %{S:1} .
%build