- Adding missing includes
OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=25
This commit is contained in:
parent
baa45296e6
commit
d6c3b175da
156
unixODBC-2.3.1-declarations.patch
Normal file
156
unixODBC-2.3.1-declarations.patch
Normal file
@ -0,0 +1,156 @@
|
||||
Index: Drivers/nn/SQLBindCol.c
|
||||
===================================================================
|
||||
--- Drivers/nn/SQLBindCol.c.orig
|
||||
+++ Drivers/nn/SQLBindCol.c
|
||||
@@ -14,6 +14,7 @@
|
||||
**/
|
||||
#include <config.h>
|
||||
#include "driver.h"
|
||||
+#include <string.h>
|
||||
|
||||
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 <config.h>
|
||||
+#include <string.h>
|
||||
#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 <config.h>
|
||||
#include "driver.h"
|
||||
+#include <string.h>
|
||||
|
||||
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 <config.h>
|
||||
#include "driver.h"
|
||||
+#include <string.h>
|
||||
|
||||
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 <config.h>
|
||||
#include "driver.h"
|
||||
+#include <string.h>
|
||||
|
||||
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 <config.h>
|
||||
#include "driver.h"
|
||||
+#include <string.h>
|
||||
|
||||
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 <config.h>
|
||||
#include "driver.h"
|
||||
+#include <string.h>
|
||||
|
||||
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 <config.h>
|
||||
#include "driver.h"
|
||||
+#include <string.h>
|
||||
|
||||
/* 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 <nnconfig.h>
|
||||
|
||||
#include <nndate.h>
|
||||
+#include <string.h>
|
||||
#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 <config.h>
|
||||
#include "driver.h"
|
||||
+#include <string.h>
|
||||
|
||||
void* nnodbc_getstmterrstack(void* hstmt)
|
||||
{
|
||||
Index: Drivers/nn/yyevl.c
|
||||
===================================================================
|
||||
--- Drivers/nn/yyevl.c.orig
|
||||
+++ Drivers/nn/yyevl.c
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <nnconfig.h>
|
||||
#include <yystmt.h>
|
||||
#include <yylex.h>
|
||||
+#include <string.h>
|
||||
#include <nncol.h>
|
||||
#include <nndate.h>
|
||||
|
||||
Index: Drivers/nn/yyparse.y
|
||||
===================================================================
|
||||
--- Drivers/nn/yyparse.y.orig
|
||||
+++ Drivers/nn/yyparse.y
|
||||
@@ -25,6 +25,7 @@ static char sccsid[]
|
||||
#include <yylex.h>
|
||||
#include <yyerr.h>
|
||||
#include <nndate.h>
|
||||
+#include <stdio.h>
|
||||
|
||||
# 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 <config.h>
|
||||
#include "driver.h"
|
||||
+#include <string.h>
|
||||
|
||||
static char sccsid[]
|
||||
= "@(#)NNSQL(NetNews SQL) v0.5, Copyright(c) 1995, 1996 by Ke Jin";
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user