Skip to content

Commit 3f9479e

Browse files
committed
Minor #include cleanup.
I just noticed that libpq's pqsignal.h was violating our general inclusion style guidelines by explicitly including postgres_fe.h. Remove that, and put it in pqsignal.c where it belongs.
1 parent a0b7b71 commit 3f9479e

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(int signo, pqsigfunc func)
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
#ifndef PQSIGNAL_H
1919
#define PQSIGNAL_H
2020

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

2523
extern pqsigfunc pqsignal(int signo, pqsigfunc func);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy