unixODBC/unixODBC-gccwarnings.patch
Michal Hrusecky (old before rename to _miska_) f987edfef0 - updated to versio 2.3.1
* reduced unixODBC, after the GUI and additional driver parts have
    been split off to their own project.
  * change to the new default SQLLEN size for 64 bit platforms
  * number of bug fixes and changes, see http://www.unixodbc.org/

OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=13
2012-11-06 09:45:33 +00:00

91 lines
2.1 KiB
Diff

Index: exe/odbc-config.c
===================================================================
--- exe/odbc-config.c.orig
+++ exe/odbc-config.c
@@ -23,6 +23,8 @@
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
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 "misc.h"
static char* month_name[] =
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
Index: Drivers/nn/misc.h
===================================================================
--- /dev/null
+++ Drivers/nn/misc.h
@@ -0,0 +1,7 @@
+#ifndef _MISC_H
+# define _MISC_H
+
+extern int upper_strneq(char *s1, char *s2, int n);
+
+
+#endif
Index: Drivers/nn/connect.c
===================================================================
--- Drivers/nn/connect.c.orig
+++ Drivers/nn/connect.c
@@ -14,6 +14,7 @@
**/
#include <config.h>
#include "driver.h"
+#include "misc.h"
void* nnodbc_getenverrstack(void* henv)
{
Index: Drivers/nn/nntp.c
===================================================================
--- Drivers/nn/nntp.c.orig
+++ Drivers/nn/nntp.c
@@ -36,6 +36,7 @@
#endif
#include <nntp.h>
+#include "misc.h"
typedef struct {
long article_num;
Index: Drivers/nn/nncol.c
===================================================================
--- Drivers/nn/nncol.c.orig
+++ Drivers/nn/nncol.c
@@ -18,6 +18,7 @@
#include <nncol.h>
#include "nncol.ci"
+#include "misc.h"
int nnsql_getcolidxbyname( char* col_name )
{
Index: Drivers/Postgre7.1/dlg_specific.c
===================================================================
--- Drivers/Postgre7.1/dlg_specific.c.orig
+++ Drivers/Postgre7.1/dlg_specific.c
@@ -21,11 +21,11 @@
#endif
#ifndef WIN32
-# include <string.h>
# include <ctype.h>
# ifdef UNIXODBC
# include <odbcinst.h>
# else
+# include <string.h>
# include "gpps.h"
# define SQLGetPrivateProfileString(a,b,c,d,e,f) GetPrivateProfileString(a,b,c,d,e,f)
# define SQLWritePrivateProfileString(a,b,c,d) WritePrivateProfileString(a,b,c,d)