aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParide Legovini <pl@ninthfloor.org>2017-05-11 17:34:21 +0200
committerParide Legovini <pl@ninthfloor.org>2017-05-11 17:34:21 +0200
commit5788a553b9353bca85972301d0f4c33e17d09e3e (patch)
tree0d74f2674199218d201553e12af8d0e63a2ce019
parent945db2ed898d4feb55ca9e690dd859503f49c231 (diff)
downloadvis-5788a553b9353bca85972301d0f4c33e17d09e3e.tar.gz
vis-5788a553b9353bca85972301d0f4c33e17d09e3e.tar.xz
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.
-rw-r--r--util.h11
1 files changed, 11 insertions, 0 deletions
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