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

Commitaa1eac7

Browse files
author
Bryan Henderson
committed
Make a local isblank() function, since not all standard C libraries have it.
For sparc_solaris, add inet_aton prototype, since it isn't in the headerfiles included for the standard C library functions.
1 parentb13ffd3 commitaa1eac7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎src/backend/libpq/hba.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.2 1996/10/13 18:37:19 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.3 1996/10/28 09:03:50 bryanh Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#include<stdio.h>
1515
#include<string.h>
1616
#include<errno.h>
1717
#include<pwd.h>
18-
#include<ctype.h>/* isspace() declaration */
1918
#include<sys/stat.h>
2019
#include<sys/socket.h>
2120
#include<netinet/in.h>
2221
#include<arpa/inet.h>
22+
#ifPORTNAME==sparc_solaris
23+
#include<port/inet_aton.h>
24+
#endif
2325

2426
#include<miscadmin.h>
2527
#include<libpq/libpq.h>
@@ -52,6 +54,14 @@
5254

5355
enumUserauth {Trust,Ident};
5456

57+
/* Some standard C libraries, including GNU, have an isblank() function.
58+
Others, including Solaris, do not. So we have our own.
59+
*/
60+
bool
61+
isblank(constcharc) {
62+
return(c==' '||c==9/* tab */);
63+
}
64+
5565

5666

5767
staticvoid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp