diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-11-21 08:50:22 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-11-21 08:50:22 +0000 |
commit | c4b04b162444222cfbc0b5943c6e5db433e8d427 (patch) | |
tree | 50e280b83122694b8e606170ddf62bd7b48cc6a7 | |
parent | efd01f3bfd84d4a692cfbf746517f891d4ecaa27 (diff) | |
download | rtmux-c4b04b162444222cfbc0b5943c6e5db433e8d427.tar.gz rtmux-c4b04b162444222cfbc0b5943c6e5db433e8d427.tar.bz2 rtmux-c4b04b162444222cfbc0b5943c6e5db433e8d427.zip |
Fixes for GNU/kFreeBSD from James Clarke.
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | osdep-freebsd.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8cd33b6c..1a3ba43c 100644 --- a/configure.ac +++ b/configure.ac @@ -478,6 +478,9 @@ if test "x$found_forkpty" = xyes; then fi AM_CONDITIONAL(NEED_FORKPTY, test "x$found_forkpty" = xno) +# Look for kinfo_getfile in libutil. +AC_SEARCH_LIBS(kinfo_getfile, [util util-freebsd]) + # Look for a suitable queue.h. AC_CHECK_DECL( TAILQ_CONCAT, diff --git a/osdep-freebsd.c b/osdep-freebsd.c index 61f3f507..a7d02930 100644 --- a/osdep-freebsd.c +++ b/osdep-freebsd.c @@ -31,6 +31,8 @@ #include <unistd.h> #include <libutil.h> +#include "compat.h" + struct kinfo_proc *cmp_procs(struct kinfo_proc *, struct kinfo_proc *); char *osdep_get_name(int, char *); char *osdep_get_cwd(int); |