From: Michael R. Crusoe <crusoe@debian.org>
Description: Enable building on GNU/Hurd
 This is a copy of the patch written for the bwa Debian package.
Forwarded: https://github.com/lh3/bwa/pull/312
--- a/bwa-apache2/bwashm.c
+++ b/bwa-apache2/bwashm.c
@@ -9,6 +9,10 @@
 #include <stdio.h>
 #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;
