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

Commit3f9479e

Browse files
committed
Minor #include cleanup.
I just noticed that libpq's pqsignal.h was violating our general inclusionstyle guidelines by explicitly including postgres_fe.h. Remove that, andput it in pqsignal.c where it belongs.
1 parenta0b7b71 commit3f9479e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

‎src/interfaces/libpq/pqsignal.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.30 2010/01/02 16:58:12 momjian Exp $
12+
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.31 2010/08/13 20:04:33 tgl Exp $
1313
*
1414
* NOTES
1515
*This shouldn't be in libpq, but the monitor and some other
1616
*things need it...
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
20-
#include"pqsignal.h"
20+
#include"postgres_fe.h"
2121

2222
#include<signal.h>
2323

24+
#include"pqsignal.h"
25+
26+
2427
pqsigfunc
2528
pqsignal(intsigno,pqsigfuncfunc)
2629
{

‎src/interfaces/libpq/pqsignal.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.25 2010/01/02 16:58:12 momjian Exp $
10+
* $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.26 2010/08/13 20:04:33 tgl Exp $
1111
*
1212
* NOTES
1313
* This shouldn't be in libpq, but the monitor and some other
@@ -18,8 +18,6 @@
1818
#ifndefPQSIGNAL_H
1919
#definePQSIGNAL_H
2020

21-
#include"postgres_fe.h"
22-
2321
typedefvoid (*pqsigfunc) (int);
2422

2523
externpqsigfuncpqsignal(intsigno,pqsigfuncfunc);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp