- 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:
parent
12a823a149
commit
0ced1ba962
22
unixODBC-2.3.1-bison.patch
Normal file
22
unixODBC-2.3.1-bison.patch
Normal 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 )
|
@ -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
|
Tue Nov 27 09:04:52 UTC 2012 - cfarrell@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package unixODBC
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -44,6 +44,7 @@ Patch6: unixODBC-nonvoid.patch
|
|||||||
Patch7: unixODBC-gccwarnings.patch
|
Patch7: unixODBC-gccwarnings.patch
|
||||||
Patch10: %{name}-2.3.1-libodbcinst-exports.patch
|
Patch10: %{name}-2.3.1-libodbcinst-exports.patch
|
||||||
Patch13: %{name}-2.3.1-uninitialized.patch
|
Patch13: %{name}-2.3.1-uninitialized.patch
|
||||||
|
Patch15: %{name}-2.3.1-bison.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
@ -88,6 +89,7 @@ Authors:
|
|||||||
%patch7
|
%patch7
|
||||||
%patch10
|
%patch10
|
||||||
%patch13
|
%patch13
|
||||||
|
%patch15
|
||||||
install -m 644 %{S:1} .
|
install -m 644 %{S:1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user