From 3eb9b73718f1d14ff3f4cc005fa7c665995c5a77 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 28 Oct 2000 15:10:36 +0000 Subject: [PATCH] Remove compiler warnings (add missing include files). Only link against -lm if it's actually there. --- src/interfaces/odbc/GNUmakefile | 4 ++-- src/interfaces/odbc/bind.c | 1 + src/interfaces/odbc/environ.c | 1 + src/interfaces/odbc/options.c | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/interfaces/odbc/GNUmakefile b/src/interfaces/odbc/GNUmakefile index e24d9e26f5..a6aedb936a 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 1a1b32c9df..0c3970977a 100644 --- a/src/interfaces/odbc/bind.c +++ b/src/interfaces/odbc/bind.c @@ -24,6 +24,7 @@ #include "pgtypes.h" #include #include +#include #ifndef WIN32 #include "iodbc.h" diff --git a/src/interfaces/odbc/environ.c b/src/interfaces/odbc/environ.c index 1c4cfef367..0b95291881 100644 --- a/src/interfaces/odbc/environ.c +++ b/src/interfaces/odbc/environ.c @@ -18,6 +18,7 @@ #include "statement.h" #include #include +#include /* 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 217f063338..c9d6d107bd 100644 --- a/src/interfaces/odbc/options.c +++ b/src/interfaces/odbc/options.c @@ -18,6 +18,7 @@ #endif #include "psqlodbc.h" +#include #ifndef WIN32 #include "iodbc.h"