From 60c58acd2971898e9bf1c0e21133eec9f8af521b Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Thu, 4 Feb 2021 16:07:47 +0100 Subject: [PATCH 1/2] -lrt does not help only for Linux but also for freebsd --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 71514357..adb9dbdc 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,9 @@ SUBDIRS= . ifeq ($(shell uname -s),Linux) LIBS += -lrt endif +ifeq ($(shell uname -s),GNU/kFreeBSD) + LIBS += -lrt +endif .SUFFIXES:.c .o .cc From 3076138aee9e05975c3584cc226afd13e85789e5 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Thu, 4 Feb 2021 16:07:53 +0100 Subject: [PATCH 2/2] Enable building on GNU/Hurd --- bwashm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bwashm.c b/bwashm.c index 163f7645..344b9338 100644 --- a/bwashm.c +++ b/bwashm.c @@ -9,6 +9,10 @@ #include #include "bwa.h" +#ifndef PATH_MAX +# define PATH_MAX 1024 +#endif + int bwa_shm_stage(bwaidx_t *idx, const char *hint, const char *_tmpfn) { const char *name;