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

Commit712e77e

Browse files
committed
Various fixes for string.h vs strings.h
From: Frank Ridderbusch <ridderbusch.pad@sni.de>
1 parent18e1f03 commit712e77e

File tree

6 files changed

+231
-172
lines changed

6 files changed

+231
-172
lines changed

‎src/backend/libpq/pqcomm.c‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.37 1998/02/19 14:27:33 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.38 1998/02/24 04:01:53 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -34,9 +34,14 @@
3434
*the postgres backend.
3535
*
3636
*/
37+
#include"postgres.h"
38+
3739
#include<stdio.h>
38-
#include<string.h>
39-
#include<strings.h>
40+
#if defined(HAVE_STRING_H)
41+
# include<string.h>
42+
#else
43+
# include<strings.h>
44+
#endif
4045
#include<signal.h>
4146
#include<errno.h>
4247
#include<fcntl.h>
@@ -56,13 +61,11 @@
5661
#endif/* SOMAXCONN */
5762
#endif/* linux */
5863

59-
#include<postgres.h>
60-
61-
#include<miscadmin.h>
62-
#include<libpq/pqsignal.h>
63-
#include<libpq/auth.h>
64-
#include<libpq/libpq.h>/* where the declarations go */
65-
#include<storage/ipc.h>
64+
#include"miscadmin.h"
65+
#include"libpq/pqsignal.h"
66+
#include"libpq/auth.h"
67+
#include"libpq/libpq.h"/* where the declarations go */
68+
#include"storage/ipc.h"
6669

6770
/* ----------------
6871
*declarations

‎src/bin/pg_passwd/pg_passwd.c‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
/*
22
* @(#) pg_passwd.c 1.8 09:13:16 97/07/02Y. Ichikawa
33
*/
4+
#include"postgres.h"
45

56
#include<stdio.h>
67
#include<stdlib.h>
7-
#include<string.h>
8-
#include<strings.h>
8+
#if defined(HAVE_STRING_H)
9+
# include<string.h>
10+
#else
11+
# include<strings.h>
12+
#endif
913
#include<unistd.h>
1014
#include<errno.h>
1115
#include<time.h>
1216
#include<ctype.h>
1317
#defineissaltchar(c)(isalnum(c) || (c) == '.' || (c) == '/')
1418

15-
#include"postgres.h"
1619
#ifdefHAVE_TERMIOS_H
1720
#include<termios.h>
1821
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp