2012-11-06 10:45:33 +01:00
|
|
|
Index: Drivers/nn/nndate.c
|
|
|
|
===================================================================
|
|
|
|
--- Drivers/nn/nndate.c.orig
|
2007-01-16 00:40:12 +01:00
|
|
|
+++ Drivers/nn/nndate.c
|
2012-11-06 10:45:33 +01:00
|
|
|
@@ -16,6 +16,7 @@
|
|
|
|
#include <nnconfig.h>
|
2007-01-16 00:40:12 +01:00
|
|
|
|
|
|
|
#include <nndate.h>
|
|
|
|
+#include "misc.h"
|
|
|
|
|
|
|
|
static char* month_name[] =
|
|
|
|
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
2012-11-06 10:45:33 +01:00
|
|
|
Index: Drivers/nn/misc.h
|
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2007-01-16 00:40:12 +01:00
|
|
|
+++ 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
|
2012-11-06 10:45:33 +01:00
|
|
|
Index: Drivers/nn/connect.c
|
|
|
|
===================================================================
|
|
|
|
--- Drivers/nn/connect.c.orig
|
2007-01-16 00:40:12 +01:00
|
|
|
+++ Drivers/nn/connect.c
|
2012-11-15 15:34:46 +01:00
|
|
|
@@ -13,7 +13,10 @@
|
|
|
|
GNU General Public License for more details.
|
2007-01-16 00:40:12 +01:00
|
|
|
**/
|
2012-11-06 10:45:33 +01:00
|
|
|
#include <config.h>
|
2012-11-15 15:34:46 +01:00
|
|
|
+#include <unistd.h>
|
|
|
|
+#include <sys/types.h>
|
2007-01-16 00:40:12 +01:00
|
|
|
#include "driver.h"
|
|
|
|
+#include "misc.h"
|
|
|
|
|
|
|
|
void* nnodbc_getenverrstack(void* henv)
|
|
|
|
{
|
2012-11-06 10:45:33 +01:00
|
|
|
Index: Drivers/nn/nntp.c
|
|
|
|
===================================================================
|
|
|
|
--- Drivers/nn/nntp.c.orig
|
2007-01-16 00:40:12 +01:00
|
|
|
+++ Drivers/nn/nntp.c
|
2012-11-15 15:36:41 +01:00
|
|
|
@@ -19,6 +19,10 @@
|
2012-11-15 13:59:13 +01:00
|
|
|
#include <string.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <nntp.h>
|
|
|
|
+#include <sys/socket.h>
|
2012-11-15 15:36:41 +01:00
|
|
|
+#include <netinet/in.h>
|
|
|
|
+#include <arpa/inet.h>
|
|
|
|
+#include <unistd.h>
|
2012-11-15 13:59:13 +01:00
|
|
|
|
|
|
|
# include "nntp.ci"
|
|
|
|
|
|
|
|
@@ -36,6 +37,7 @@
|
2007-01-16 00:40:12 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <nntp.h>
|
|
|
|
+#include "misc.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
long article_num;
|
2012-11-06 10:45:33 +01:00
|
|
|
Index: Drivers/nn/nncol.c
|
|
|
|
===================================================================
|
|
|
|
--- Drivers/nn/nncol.c.orig
|
2007-01-16 00:40:12 +01:00
|
|
|
+++ Drivers/nn/nncol.c
|
2012-11-06 10:45:33 +01:00
|
|
|
@@ -18,6 +18,7 @@
|
2007-01-16 00:40:12 +01:00
|
|
|
|
|
|
|
#include <nncol.h>
|
|
|
|
#include "nncol.ci"
|
|
|
|
+#include "misc.h"
|
|
|
|
|
|
|
|
int nnsql_getcolidxbyname( char* col_name )
|
|
|
|
{
|