mirror of
https://git.freebsd.org/ports.git
synced 2025-07-07 04:19:17 -04:00
Repo copy from databases/pgpool-II. Changes from that port: - New port for pgpool-II33-3.3.3 - Stagify - Add libtool, gmake, pgsql, perl5 to USES. Drop .la files -- this is a new port, so there can't be any pre-existing consumers of the .la files to worry about. - Use options helpers - The configure used with this software is buggy and doesn't understand --without-foo. Just omit any --with-foo or --without-foo to turn off 'foo' support. - New options PAM MEMCACHED. Enable PAM by default since it only depends on the base system. - Add RUN_DEPENDS on rsync and perl5 -- needed for the scripts pgpool_copy_backup and pgpool_remote_start respectively. - regenerate pkg-plist using 'make makeplist.' Just use the auto-generated plist entries for %%PORTDOCS%% rather than the $PORTDOCS variable. - Simplify how docs and sql/contrib functions are installed Redports: https://redports.org/buildarchive/20140629142900-20287/ PR: 189880 Submitted by: michelle@sorbs.net Reviewed by: pi, matthew
31 lines
969 B
C
31 lines
969 B
C
--- ./watchdog/watchdog.h.orig 2014-03-24 14:30:01.000000000 +0000
|
|
+++ ./watchdog/watchdog.h 2014-06-29 14:55:21.760361453 +0100
|
|
@@ -56,6 +56,28 @@
|
|
#define WD_TIME_DIFF_SEC(a,b) (int)(((a).tv_sec - (b).tv_sec) + \
|
|
((a).tv_usec - (b).tv_usec) / 1000000.0)
|
|
|
|
+/* For valid x, exactly one of WIFSIGNALED(x), WIFEXITED(x), WIFSTOPPED(x) is true. */
|
|
+#ifndef WIFSIGNALED
|
|
+# define WIFSIGNALED(x) (WTERMSIG (x) != 0 && WTERMSIG(x) != 0x7f)
|
|
+#endif
|
|
+#ifndef WIFEXITED
|
|
+# define WIFEXITED(x) (WTERMSIG (x) == 0)
|
|
+#endif
|
|
+#ifndef WIFSTOPPED
|
|
+# define WIFSTOPPED(x) (WTERMSIG (x) == 0x7f)
|
|
+#endif
|
|
+
|
|
+/* The termination signal. Only to be accessed if WIFSIGNALED(x) is true. */
|
|
+#ifndef WTERMSIG
|
|
+# define WTERMSIG(x) ((x) & 0x7f)
|
|
+#endif
|
|
+
|
|
+
|
|
+/* The exit status. Only to be accessed if WIFEXITED(x) is true. */
|
|
+#ifndef WEXITSTATUS
|
|
+# define WEXITSTATUS(x) (((x) >> 8) & 0xff)
|
|
+#endif
|
|
+
|
|
/*
|
|
* packet number of watchdog negotiation
|
|
*/
|