Skip to content

Commit 3eb9b73

Browse files
committed
Remove compiler warnings (add missing include files). Only link against
-lm if it's actually there.
1 parent 8df6b2b commit 3eb9b73

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

src/interfaces/odbc/GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# GNUMakefile for psqlodbc (Postgres ODBC driver)
44
#
5-
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.6 2000/10/23 21:43:58 petere Exp $
5+
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.7 2000/10/28 15:10:36 petere Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -23,7 +23,7 @@ OBJS = info.o bind.o columninfo.o connection.o convert.o drvconn.o \
2323
pgtypes.o psqlodbc.o qresult.o results.o socket.o parse.o statement.o \
2424
gpps.o tuple.o tuplelist.o dlg_specific.o $(OBJX)
2525

26-
SHLIB_LINK= -lm
26+
SHLIB_LINK = $(filter -lm, $(LIBS))
2727

2828
all: all-lib
2929

src/interfaces/odbc/bind.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "pgtypes.h"
2525
#include <stdlib.h>
2626
#include <malloc.h>
27+
#include <string.h>
2728

2829
#ifndef WIN32
2930
#include "iodbc.h"

src/interfaces/odbc/environ.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "statement.h"
1919
#include <stdlib.h>
2020
#include <malloc.h>
21+
#include <string.h>
2122

2223
/* The one instance of the handles */
2324
ConnectionClass *conns[MAX_CONNECTIONS];

src/interfaces/odbc/options.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#endif
1919

2020
#include "psqlodbc.h"
21+
#include <string.h>
2122

2223
#ifndef WIN32
2324
#include "iodbc.h"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy