mirror of https://github.com/postgres/postgres
Remove compiler warnings (add missing include files). Only link against
-lm if it's actually there.
This commit is contained in:
parent
8df6b2b53f
commit
3eb9b73718
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# GNUMakefile for psqlodbc (Postgres ODBC driver)
|
# 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 \
|
pgtypes.o psqlodbc.o qresult.o results.o socket.o parse.o statement.o \
|
||||||
gpps.o tuple.o tuplelist.o dlg_specific.o $(OBJX)
|
gpps.o tuple.o tuplelist.o dlg_specific.o $(OBJX)
|
||||||
|
|
||||||
SHLIB_LINK= -lm
|
SHLIB_LINK = $(filter -lm, $(LIBS))
|
||||||
|
|
||||||
all: all-lib
|
all: all-lib
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include "pgtypes.h"
|
#include "pgtypes.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include "iodbc.h"
|
#include "iodbc.h"
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include "statement.h"
|
#include "statement.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/* The one instance of the handles */
|
/* The one instance of the handles */
|
||||||
ConnectionClass *conns[MAX_CONNECTIONS];
|
ConnectionClass *conns[MAX_CONNECTIONS];
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "psqlodbc.h"
|
#include "psqlodbc.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include "iodbc.h"
|
#include "iodbc.h"
|
||||||
|
|
Loading…
Reference in New Issue