Update to 2.3.2 and fix issue with man page extension from previous request OBS-URL: https://build.opensuse.org/request/show/215333 OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=30
125 lines
2.8 KiB
Diff
125 lines
2.8 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
|
|
@@ -13,7 +13,10 @@
|
|
GNU General Public License for more details.
|
|
**/
|
|
#include <config.h>
|
|
+#include <unistd.h>
|
|
+#include <sys/types.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
|
|
@@ -19,6 +19,10 @@
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <nntp.h>
|
|
+#include <sys/socket.h>
|
|
+#include <netinet/in.h>
|
|
+#include <arpa/inet.h>
|
|
+#include <unistd.h>
|
|
|
|
# include "nntp.ci"
|
|
|
|
@@ -36,6 +37,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)
|
|
@@ -38,6 +38,7 @@
|
|
|
|
#include "dlg_specific.h"
|
|
#include "convert.h"
|
|
+#include <string.h>
|
|
|
|
#ifndef BOOL
|
|
#define BOOL int
|
|
Index: Drivers/nn/yylex.c
|
|
===================================================================
|
|
--- Drivers/nn/yylex.c.orig
|
|
+++ Drivers/nn/yylex.c
|
|
@@ -25,6 +25,7 @@
|
|
# define YYERRCODE 256
|
|
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
|
|
static int getcmpopidxbyname(char* name)
|
|
{
|