|
|
@@ -1,17 +1,16 @@
|
|
|
Index: util/Makefile.in
|
|
|
-diff -Nau util/Makefile.in.orig util/Makefile.in
|
|
|
---- util/Makefile.in.orig 2005-01-13 13:50:12 +0100
|
|
|
-+++ util/Makefile.in 2005-01-13 13:53:11 +0100
|
|
|
-@@ -59,7 +59,7 @@
|
|
|
- MYODBCUtilReadDataSource.lo MYODBCUtilReadDataSourceStr.lo \
|
|
|
- MYODBCUtilReadDriver.lo MYODBCUtilWriteConnectStr.lo \
|
|
|
- MYODBCUtilWriteDataSource.lo MYODBCUtilWriteDataSourceStr.lo \
|
|
|
-- MYODBCUtilWriteDriver.lo
|
|
|
-+ MYODBCUtilWriteDriver.lo strndup.lo
|
|
|
+--- util/Makefile.in.orig 2005-02-02 17:56:15 +0100
|
|
|
++++ util/Makefile.in 2005-02-10 16:11:33 +0100
|
|
|
+@@ -60,7 +60,7 @@
|
|
|
+ MYODBCUtilReadConnectStr.lo MYODBCUtilReadDataSource.lo \
|
|
|
+ MYODBCUtilReadDataSourceStr.lo MYODBCUtilReadDriver.lo \
|
|
|
+ MYODBCUtilWriteConnectStr.lo MYODBCUtilWriteDataSource.lo \
|
|
|
+- MYODBCUtilWriteDataSourceStr.lo MYODBCUtilWriteDriver.lo
|
|
|
++ MYODBCUtilWriteDataSourceStr.lo MYODBCUtilWriteDriver.lo strndup.lo
|
|
|
libmyodbcutil_la_OBJECTS = $(am_libmyodbcutil_la_OBJECTS)
|
|
|
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/driver
|
|
|
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
|
|
-@@ -79,7 +79,8 @@
|
|
|
+@@ -83,7 +83,8 @@
|
|
|
@AMDEP_TRUE@ ./$(DEPDIR)/MYODBCUtilWriteConnectStr.Plo \
|
|
|
@AMDEP_TRUE@ ./$(DEPDIR)/MYODBCUtilWriteDataSource.Plo \
|
|
|
@AMDEP_TRUE@ ./$(DEPDIR)/MYODBCUtilWriteDataSourceStr.Plo \
|
|
|
@@ -21,7 +20,7 @@ diff -Nau util/Makefile.in.orig util/Makefile.in
|
|
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
|
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
|
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
|
|
|
-@@ -251,7 +252,8 @@
|
|
|
+@@ -258,7 +259,8 @@
|
|
|
MYODBCUtilWriteConnectStr.c \
|
|
|
MYODBCUtilWriteDataSource.c \
|
|
|
MYODBCUtilWriteDataSourceStr.c \
|
|
|
@@ -31,7 +30,7 @@ diff -Nau util/Makefile.in.orig util/Makefile.in
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
util.pro \
|
|
|
-@@ -324,6 +326,7 @@
|
|
|
+@@ -334,6 +336,7 @@
|
|
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MYODBCUtilWriteDataSource.Plo@am__quote@
|
|
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MYODBCUtilWriteDataSourceStr.Plo@am__quote@
|
|
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MYODBCUtilWriteDriver.Plo@am__quote@
|
|
|
@@ -39,3 +38,34 @@ diff -Nau util/Makefile.in.orig util/Makefile.in
|
|
|
|
|
|
.c.o:
|
|
|
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
|
|
+Index: util/strndup.c
|
|
|
+--- /dev/null 2005-02-10 16:13:23 +0100
|
|
|
++++ util/strndup.c 2005-02-10 16:17:25 +0100
|
|
|
+@@ -0,0 +1,15 @@
|
|
|
++
|
|
|
++#include <stdio.h>
|
|
|
++
|
|
|
++char *strndup(const char *src, size_t len)
|
|
|
++{
|
|
|
++ char *dst;
|
|
|
++
|
|
|
++ if (src == NULL)
|
|
|
++ return NULL;
|
|
|
++ if (dst = (char *)calloc(len + 1, sizeof(char)) == NULL)
|
|
|
++ return NULL;
|
|
|
++ strncpy(dst, src, len);
|
|
|
++ return dst;
|
|
|
++}
|
|
|
++
|
|
|
+Index: samples/Makefile.in
|
|
|
+--- samples/Makefile.in.orig 2005-02-02 17:56:15 +0100
|
|
|
++++ samples/Makefile.in 2005-02-10 16:21:58 +0100
|
|
|
+@@ -252,7 +252,7 @@
|
|
|
+ x_includes = @x_includes@
|
|
|
+ x_libraries = @x_libraries@
|
|
|
+ INCLUDES = -I..
|
|
|
+-AM_LDFLAGS = ../driver_r/libmyodbc3_r.la @MYSQL_THREADSAFE_LIB@
|
|
|
++AM_LDFLAGS = ../driver/libmyodbc3.la @MYSQL_THREADSAFE_LIB@
|
|
|
+ EXTRA_DIST = my_utility.h run-samples WIN-Makefile
|
|
|
+ all: all-am
|
|
|
+
|