ports/devel/libfastcommon/files/patch-src_system__info.c
John Marino eade84d0d7 devel/libfastcommon: fix misbuild, add DF, bump deps minus nginx-full
The fastcommon library is being built as 32-bit on amd64 due to the
misuse of uname (uname -p returns "amd64", not uname alone).

Additionally, the hardcoded install commands (added via patch) have been
updated to the BSD_INSTALL* macros to satisfy QA tests.

While here, fix building on DragonFly (sacrificing unused Darwin support
in the process).

Finally, bump all ports dependend on fault libfastcommon.so except
www/nginx-full which has no separate PORTREVISION setting.  I can't bump
it without bumping www/nginx too (bug??).

Approvd by:	just-fix-it
2017-01-28 14:22:53 +00:00

23 lines
669 B
C

--- src/system_info.c.orig 2016-09-08 07:44:31 UTC
+++ src/system_info.c
@@ -582,6 +582,20 @@ int get_sysinfo(struct fast_sysinfo*info
#define ki_rgid kp_eproc.e_pcred.p_rgid
#define GET_SIGNAL(sig) sig
+#elif defined __DragonFly__
+#define ki_pid kp_pid
+#define ki_comm kp_comm
+#define ki_ppid kp_ppid
+#define ki_start kp_start
+#define ki_flag kp_flags
+#define ki_stat kp_stat
+#define ki_sigignore kp_sigignore
+#define ki_sigcatch kp_sigcatch
+#define ki_priority kp_lwp.kl_prio
+#define ki_ruid kp_ruid
+#define ki_rgid kp_rgid
+#define GET_SIGNAL(sig) *((int *)&sig)
+
#else
#define ki_priority ki_pri.pri_level
#define GET_SIGNAL(sig) *((int *)&sig)