]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove compiler warnings (add missing include files). Only link against
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 28 Oct 2000 15:10:36 +0000 (15:10 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 28 Oct 2000 15:10:36 +0000 (15:10 +0000)
-lm if it's actually there.

src/interfaces/odbc/GNUmakefile
src/interfaces/odbc/bind.c
src/interfaces/odbc/environ.c
src/interfaces/odbc/options.c

index e24d9e26f5422d6ba19c0ff6baf16b0fe479ce01..a6aedb936ad7d8d8799677a99debd117e7266c01 100644 (file)
@@ -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
 
index 1a1b32c9dfc7dfdc0581ec3c4e115f5b214b9828..0c3970977aa4975715df2e9733c4af732baecea1 100644 (file)
@@ -24,6 +24,7 @@
 #include "pgtypes.h"
 #include <stdlib.h>
 #include <malloc.h>
+#include <string.h>
 
 #ifndef WIN32
 #include "iodbc.h"
index 1c4cfef3670d7b369cb7913763c33dfadf8d83a7..0b95291881db300078b59c04f91736c47dd1a6e5 100644 (file)
@@ -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];
index 217f063338ebde0622bf413bf0c82a8a05659726..c9d6d107bd52e6d78cd1aaf910caa8429f401a9a 100644 (file)
@@ -18,6 +18,7 @@
 #endif
 
 #include "psqlodbc.h"
+#include <string.h>
 
 #ifndef WIN32
 #include "iodbc.h"