diff --git a/src/interfaces/odbc/GNUmakefile b/src/interfaces/odbc/GNUmakefile index e24d9e26f5422d6ba19c0ff6baf16b0fe479ce01..a6aedb936ad7d8d8799677a99debd117e7266c01 100644 --- a/src/interfaces/odbc/GNUmakefile +++ b/src/interfaces/odbc/GNUmakefile @@ -2,7 +2,7 @@ # # GNUMakefile for psqlodbc (Postgres ODBC driver) # -# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.6 2000/10/23 21:43:58 petere Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.7 2000/10/28 15:10:36 petere Exp $ # #------------------------------------------------------------------------- @@ -23,7 +23,7 @@ OBJS = info.o bind.o columninfo.o connection.o convert.o drvconn.o \ pgtypes.o psqlodbc.o qresult.o results.o socket.o parse.o statement.o \ gpps.o tuple.o tuplelist.o dlg_specific.o $(OBJX) -SHLIB_LINK= -lm +SHLIB_LINK = $(filter -lm, $(LIBS)) all: all-lib diff --git a/src/interfaces/odbc/bind.c b/src/interfaces/odbc/bind.c index 1a1b32c9dfc7dfdc0581ec3c4e115f5b214b9828..0c3970977aa4975715df2e9733c4af732baecea1 100644 --- a/src/interfaces/odbc/bind.c +++ b/src/interfaces/odbc/bind.c @@ -24,6 +24,7 @@ #include "pgtypes.h" #include <stdlib.h> #include <malloc.h> +#include <string.h> #ifndef WIN32 #include "iodbc.h" diff --git a/src/interfaces/odbc/environ.c b/src/interfaces/odbc/environ.c index 1c4cfef3670d7b369cb7913763c33dfadf8d83a7..0b95291881db300078b59c04f91736c47dd1a6e5 100644 --- a/src/interfaces/odbc/environ.c +++ b/src/interfaces/odbc/environ.c @@ -18,6 +18,7 @@ #include "statement.h" #include <stdlib.h> #include <malloc.h> +#include <string.h> /* The one instance of the handles */ ConnectionClass *conns[MAX_CONNECTIONS]; diff --git a/src/interfaces/odbc/options.c b/src/interfaces/odbc/options.c index 217f063338ebde0622bf413bf0c82a8a05659726..c9d6d107bd52e6d78cd1aaf910caa8429f401a9a 100644 --- a/src/interfaces/odbc/options.c +++ b/src/interfaces/odbc/options.c @@ -18,6 +18,7 @@ #endif #include "psqlodbc.h" +#include <string.h> #ifndef WIN32 #include "iodbc.h"