From 5788a553b9353bca85972301d0f4c33e17d09e3e Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Thu, 11 May 2017 17:34:21 +0200 Subject: Fix compilation on GNU Hurd systems On GNU Hurd systems PIPE_BUF and PATH_MAX are not defined, and the compilation fails. This patch defines them if they aren't. --- util.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index 9048c82..2520678 100644 --- a/util.h +++ b/util.h @@ -35,3 +35,14 @@ static void *memrchr(const void *m, int c, size_t n) #endif #endif /* UTIL_H */ + + +/* Needed for building on Hurd */ + +#ifndef PIPE_BUF +#define PIPE_BUF 4096 +#endif + +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif \ No newline at end of file -- cgit v1.2.3