Skip to content

Commit 92369b0

Browse files
authored
Merge pull request #312 from mr-c/freebsd_and_hurd
Freebsd and hurd compatibility
2 parents 51560bd + 3076138 commit 92369b0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ SUBDIRS= .
1818
ifeq ($(shell uname -s),Linux)
1919
LIBS += -lrt
2020
endif
21+
ifeq ($(shell uname -s),GNU/kFreeBSD)
22+
LIBS += -lrt
23+
endif
2124

2225
.SUFFIXES:.c .o .cc
2326

bwashm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#include <stdio.h>
1010
#include "bwa.h"
1111

12+
#ifndef PATH_MAX
13+
# define PATH_MAX 1024
14+
#endif
15+
1216
int bwa_shm_stage(bwaidx_t *idx, const char *hint, const char *_tmpfn)
1317
{
1418
const char *name;

0 commit comments

Comments
 (0)