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

Commitfd78666

Browse files
committed
Include c.h instead of postgres.h in files that need to be usable in
both frontend and backend. Per Andreas Pflug.
1 parentf8dd00c commitfd78666

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

‎src/port/getopt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3333
*/
3434

35-
#include"postgres.h"
35+
#include"c.h"
3636

3737

3838
#if defined(LIBC_SCCS)&& !defined(lint)

‎src/port/getrusage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/port/getrusage.c,v 1.4 2003/11/29 19:52:13 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/port/getrusage.c,v 1.5 2004/06/24 18:53:48 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515

1616
#include<stdio.h>
1717
#include<errno.h>
1818

19-
#include"postgres.h"
19+
#include"c.h"
2020
#include"rusagestub.h"
2121

2222
/* This code works on:

‎src/port/gettimeofday.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/src/port/gettimeofday.c,v 1.4 2004/05/21 05:08:05 tgl Exp $
2+
* $PostgreSQL: pgsql/src/port/gettimeofday.c,v 1.5 2004/06/24 18:53:48 tgl Exp $
33
*
44
* Copyright (c) 2003 SRA, Inc.
55
* Copyright (c) 2003 SKC, Inc.
@@ -23,7 +23,7 @@
2323
* SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
2424
*/
2525

26-
#include"postgres.h"
26+
#include"c.h"
2727

2828
#include<sys/time.h>
2929

‎src/port/kill.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
*signals that the backend can recognize.
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/port/kill.c,v 1.1 2004/05/27 13:08:57 momjian Exp $
12+
* $PostgreSQL: pgsql/src/port/kill.c,v 1.2 2004/06/24 18:53:48 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
1616

17-
#include"postgres.h"
17+
#include"c.h"
1818

1919
#ifdefWIN32
2020
/* signal sending */

‎src/port/noblock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/port/noblock.c,v 1.1 2004/03/10 21:12:49 momjian Exp $
10+
* $PostgreSQL: pgsql/src/port/noblock.c,v 1.2 2004/06/24 18:53:48 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414

15-
#include"postgres.h"
15+
#include"c.h"
1616

1717
#include<sys/types.h>
1818
#include<fcntl.h>

‎src/port/pgsleep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
*
77
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
88
*
9-
* $PostgreSQL: pgsql/src/port/pgsleep.c,v 1.3 2004/04/12 16:19:18 momjian Exp $
9+
* $PostgreSQL: pgsql/src/port/pgsleep.c,v 1.4 2004/06/24 18:53:48 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
13-
#include"postgres.h"
13+
#include"c.h"
1414

1515
#include<unistd.h>
1616
#include<sys/time.h>

‎src/port/pgstrcasecmp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
*
1717
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
1818
*
19-
* $PostgreSQL: pgsql/src/port/pgstrcasecmp.c,v 1.1 2004/05/07 00:24:59 tgl Exp $
19+
* $PostgreSQL: pgsql/src/port/pgstrcasecmp.c,v 1.2 2004/06/24 18:53:48 tgl Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
23-
#include"postgres.h"
23+
#include"c.h"
2424

2525
#include<ctype.h>
2626

‎src/port/pipe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
*must be replaced with recv/send.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/port/pipe.c,v 1.5 2004/06/11 03:48:35 momjian Exp $
13+
* $PostgreSQL: pgsql/src/port/pipe.c,v 1.6 2004/06/24 18:53:48 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
1717

18-
#include"postgres.h"
18+
#include"c.h"
1919

2020
#ifdefWIN32
2121
int

‎src/port/sprompt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/port/sprompt.c,v 1.5 2004/04/19 17:42:59 momjian Exp $
11+
* $PostgreSQL: pgsql/src/port/sprompt.c,v 1.6 2004/06/24 18:53:48 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -26,7 +26,7 @@
2626
*
2727
* Returns a malloc()'ed string with the input (w/o trailing newline).
2828
*/
29-
#include"postgres.h"
29+
#include"c.h"
3030

3131
#ifdefHAVE_TERMIOS_H
3232
#include<termios.h>

‎src/port/thread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
*
88
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
99
*
10-
* $PostgreSQL: pgsql/src/port/thread.c,v 1.22 2004/06/08 01:45:50 momjian Exp $
10+
* $PostgreSQL: pgsql/src/port/thread.c,v 1.23 2004/06/24 18:53:48 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414

15-
#include"postgres.h"
15+
#include"c.h"
1616

1717
#include<sys/types.h>
1818
#include<errno.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp