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 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;