diff --git a/unixODBC-2.3.1-declarations.patch b/unixODBC-2.3.1-declarations.patch new file mode 100644 index 0000000..5390070 --- /dev/null +++ b/unixODBC-2.3.1-declarations.patch @@ -0,0 +1,156 @@ +Index: Drivers/nn/SQLBindCol.c +=================================================================== +--- Drivers/nn/SQLBindCol.c.orig ++++ Drivers/nn/SQLBindCol.c +@@ -14,6 +14,7 @@ + **/ + #include + #include "driver.h" ++#include + + RETCODE SQL_API SQLBindCol( + HSTMT hstmt, +Index: Drivers/nn/SQLBindParameter.c +=================================================================== +--- Drivers/nn/SQLBindParameter.c.orig ++++ Drivers/nn/SQLBindParameter.c +@@ -13,6 +13,7 @@ + GNU General Public License for more details. + **/ + #include ++#include + #include "driver.h" + + RETCODE SQL_API SQLBindParameter( +Index: Drivers/nn/SQLDescribeCol.c +=================================================================== +--- Drivers/nn/SQLDescribeCol.c.orig ++++ Drivers/nn/SQLDescribeCol.c +@@ -14,6 +14,7 @@ + **/ + #include + #include "driver.h" ++#include + + RETCODE SQL_API SQLDescribeCol( + HSTMT hstmt, +Index: Drivers/nn/SQLError.c +=================================================================== +--- Drivers/nn/SQLError.c.orig ++++ Drivers/nn/SQLError.c +@@ -14,6 +14,7 @@ + **/ + #include + #include "driver.h" ++#include + + RETCODE SQL_API SQLError( + HENV henv, +Index: Drivers/nn/SQLFetch.c +=================================================================== +--- Drivers/nn/SQLFetch.c.orig ++++ Drivers/nn/SQLFetch.c +@@ -14,6 +14,7 @@ + **/ + #include + #include "driver.h" ++#include + + RETCODE SQL_API SQLFetch( HSTMT hstmt ) + { +Index: Drivers/nn/SQLGetData.c +=================================================================== +--- Drivers/nn/SQLGetData.c.orig ++++ Drivers/nn/SQLGetData.c +@@ -14,6 +14,7 @@ + **/ + #include + #include "driver.h" ++#include + + RETCODE SQL_API SQLGetData( + HSTMT hstmt, +Index: Drivers/nn/SQLPutData.c +=================================================================== +--- Drivers/nn/SQLPutData.c.orig ++++ Drivers/nn/SQLPutData.c +@@ -14,6 +14,7 @@ + **/ + #include + #include "driver.h" ++#include + + RETCODE SQL_API SQLPutData( + HSTMT hstmt, +Index: Drivers/nn/convert.c +=================================================================== +--- Drivers/nn/convert.c.orig ++++ Drivers/nn/convert.c +@@ -14,6 +14,7 @@ + **/ + #include + #include "driver.h" ++#include + + /* It looks silly to use a MEM_ALLOC() in function char2str(), etc, + * for converting C data type into STRING SQL data type. Esspecially +Index: Drivers/nn/nndate.c +=================================================================== +--- Drivers/nn/nndate.c.orig ++++ Drivers/nn/nndate.c +@@ -16,6 +16,7 @@ + #include + + #include ++#include + #include "misc.h" + + static char* month_name[] = +Index: Drivers/nn/prepare.c +=================================================================== +--- Drivers/nn/prepare.c.orig ++++ Drivers/nn/prepare.c +@@ -14,6 +14,7 @@ + **/ + #include + #include "driver.h" ++#include + + void* nnodbc_getstmterrstack(void* hstmt) + { +Index: Drivers/nn/yyevl.c +=================================================================== +--- Drivers/nn/yyevl.c.orig ++++ Drivers/nn/yyevl.c +@@ -16,6 +16,7 @@ + #include + #include + #include ++#include + #include + #include + +Index: Drivers/nn/yyparse.y +=================================================================== +--- Drivers/nn/yyparse.y.orig ++++ Drivers/nn/yyparse.y +@@ -25,6 +25,7 @@ static char sccsid[] + #include + #include + #include ++#include + + # ifdef YYLSP_NEEDED + # undef YYLSP_NEEDED +Index: Drivers/nn/yystmt.c +=================================================================== +--- Drivers/nn/yystmt.c.orig ++++ Drivers/nn/yystmt.c +@@ -14,6 +14,7 @@ + **/ + #include + #include "driver.h" ++#include + + static char sccsid[] + = "@(#)NNSQL(NetNews SQL) v0.5, Copyright(c) 1995, 1996 by Ke Jin"; diff --git a/unixODBC.changes b/unixODBC.changes index 3d59c13..bbbef4c 100644 --- a/unixODBC.changes +++ b/unixODBC.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 4 15:04:52 CET 2013 - mhrusecky@suse.cz + +- Adding missing includes + ------------------------------------------------------------------- Fri Jan 4 13:02:10 CET 2013 - mhrusecky@suse.cz diff --git a/unixODBC.spec b/unixODBC.spec index 92f95c1..22457e6 100644 --- a/unixODBC.spec +++ b/unixODBC.spec @@ -45,6 +45,7 @@ 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 +Patch16: %{name}-2.3.1-declarations.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %package devel @@ -90,6 +91,7 @@ Authors: %patch10 %patch13 %patch15 +%patch16 install -m 644 %{S:1} . %build