From 1a29cf9e6996b736aa39bf752fc1c823620b8a6f Mon Sep 17 00:00:00 2001 From: "Aaron W. Swenson" Date: Mon, 1 Aug 2011 21:30:41 -0400 Subject: bool.patch to fix PPC{,64} defining it to . . . something. pg_ctl-exit-status.patch to emit the proper exit status when server isn't running. --- bool.patch | 11 +++++++++++ pg_ctl-exit-status.patch | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 bool.patch create mode 100644 pg_ctl-exit-status.patch diff --git a/bool.patch b/bool.patch new file mode 100644 index 0000000..a338be6 --- /dev/null +++ b/bool.patch @@ -0,0 +1,11 @@ +diff -Naur a/src/include/c.h b/src/include/c.h +--- a/src/include/c.h 2011-04-14 23:19:01.000000000 -0400 ++++ b/src/include/c.h 2011-07-31 18:23:00.648671437 -0400 +@@ -170,6 +170,7 @@ + */ + + #ifndef __cplusplus ++#undef bool + + #ifndef bool + typedef char bool; diff --git a/pg_ctl-exit-status.patch b/pg_ctl-exit-status.patch new file mode 100644 index 0000000..f55c9ac --- /dev/null +++ b/pg_ctl-exit-status.patch @@ -0,0 +1,12 @@ +diff -Naur a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c +--- a/src/bin/pg_ctl/pg_ctl.c 2011-04-14 23:18:15.000000000 -0400 ++++ b/src/bin/pg_ctl/pg_ctl.c 2011-08-01 19:44:54.009993121 -0400 +@@ -975,7 +975,7 @@ + } + } + printf(_("%s: no server running\n"), progname); +- exit(1); ++ exit(3); + } + + -- cgit v1.2.3-65-gdbad