Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3eb9b73

Browse files
committed
Remove compiler warnings (add missing include files). Only link against
-lm if it's actually there.
1 parent8df6b2b commit3eb9b73

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
#ifndefWIN32
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
#ifndefWIN32
2324
#include"iodbc.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp