aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2011-08-01 20:16:35 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2011-08-01 20:16:35 -0400
commit007b784dabdf2ab89a31c021211435606e672938 (patch)
treeb0518cd4ec0900240ebd82522f2ed150819a95cf
parentInitial commit of 8.3 patches. (diff)
downloadpatches-007b784dabdf2ab89a31c021211435606e672938.tar.gz
patches-007b784dabdf2ab89a31c021211435606e672938.tar.bz2
patches-007b784dabdf2ab89a31c021211435606e672938.zip
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.
-rw-r--r--bool.patch11
-rw-r--r--pg_ctl-exit-status.patch12
2 files changed, 23 insertions, 0 deletions
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);
+ }
+
+