diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-08-13 20:04:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-08-13 20:04:33 +0000 |
commit | 3f9479ef3fdf49fc22088be5268fa536cf5d4efd (patch) | |
tree | eca09fb92b9ebdcbd08d5927dad562b4409b5ad3 /src | |
parent | a0b7b717a4324f573d3a7651a06037557066eb77 (diff) | |
download | postgresql-3f9479ef3fdf49fc22088be5268fa536cf5d4efd.tar.gz postgresql-3f9479ef3fdf49fc22088be5268fa536cf5d4efd.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/libpq/pqsignal.c | 7 | ||||
-rw-r--r-- | src/interfaces/libpq/pqsignal.h | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/interfaces/libpq/pqsignal.c b/src/interfaces/libpq/pqsignal.c index 21bc141b34d..2122fda6c79 100644 --- a/src/interfaces/libpq/pqsignal.c +++ b/src/interfaces/libpq/pqsignal.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.30 2010/01/02 16:58:12 momjian Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.c,v 1.31 2010/08/13 20:04:33 tgl Exp $ * * NOTES * This shouldn't be in libpq, but the monitor and some other @@ -17,10 +17,13 @@ * *------------------------------------------------------------------------- */ -#include "pqsignal.h" +#include "postgres_fe.h" #include <signal.h> +#include "pqsignal.h" + + pqsigfunc pqsignal(int signo, pqsigfunc func) { diff --git a/src/interfaces/libpq/pqsignal.h b/src/interfaces/libpq/pqsignal.h index 43322f917a6..9d22854415f 100644 --- a/src/interfaces/libpq/pqsignal.h +++ b/src/interfaces/libpq/pqsignal.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.25 2010/01/02 16:58:12 momjian Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.26 2010/08/13 20:04:33 tgl Exp $ * * NOTES * This shouldn't be in libpq, but the monitor and some other @@ -18,8 +18,6 @@ #ifndef PQSIGNAL_H #define PQSIGNAL_H -#include "postgres_fe.h" - typedef void (*pqsigfunc) (int); extern pqsigfunc pqsignal(int signo, pqsigfunc func); |