Remove compiler warnings (add missing include files). Only link against

-lm if it's actually there.
This commit is contained in:
Peter Eisentraut 2000-10-28 15:10:36 +00:00
parent 8df6b2b53f
commit 3eb9b73718
4 changed files with 5 additions and 2 deletions

View 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

View File

@ -24,6 +24,7 @@
#include "pgtypes.h"
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#ifndef WIN32
#include "iodbc.h"

View 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];

View File

@ -18,6 +18,7 @@
#endif
#include "psqlodbc.h"
#include <string.h>
#ifndef WIN32
#include "iodbc.h"