vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 555c8e8ac086741e20e51fd6c8041b7cdd025af6
parent 8e81ae9ad2f34e5fb0511146d9d7a18cca9ac370
Author: Paride Legovini <pl@ninthfloor.org>
Date:   Thu, 11 May 2017 17:34:21 +0200

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.

Diffstat:
Mutil.h | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git 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