aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2011-08-01 21:30:41 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2011-08-01 21:30:41 -0400
commit1a29cf9e6996b736aa39bf752fc1c823620b8a6f (patch)
tree8551e3b127cdc01602c35463f0538fdd26cd0c8e
parentUpdated for Beta 3 (diff)
downloadpatches-1a29cf9e6996b736aa39bf752fc1c823620b8a6f.tar.gz
patches-1a29cf9e6996b736aa39bf752fc1c823620b8a6f.tar.bz2
patches-1a29cf9e6996b736aa39bf752fc1c823620b8a6f.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);
+ }
+
+