commit 2a0871b731fb068bfab6acc04a473914149b87b0
parent bc36476b9e4f797df4b287d855a3121567dbc091
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 15 May 2019 14:39:58 +0300
Fixed build from source on GNU Hurd
Diffstat:
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,6 @@
+Web May 15 14:54:00 MSK 2019
+ Fixed build from source on GNU Hurd. -EG
+
Mon May 6 11:58:00 MSK 2019
Updated README and COPYING files. MHD remains LGPLv2.1-licensed. -EG
diff --git a/src/examples/demo.c b/src/examples/demo.c
@@ -48,6 +48,12 @@
#define CPU_COUNT 2
#endif
+#ifndef PATH_MAX
+/* Some platforms (namely: GNU Hurd) do no define PATH_MAX.
+ As it is only example for MHD, just use reasonable value for PATH_MAX. */
+#define PATH_MAX 16384
+#endif
+
/**
* Number of threads to run in the thread pool. Should (roughly) match
* the number of cores on your system.
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c
@@ -51,6 +51,12 @@
#define CPU_COUNT 2
#endif
+#ifndef PATH_MAX
+/* Some platforms (namely: GNU Hurd) do no define PATH_MAX.
+ As it is only example for MHD, just use reasonable value for PATH_MAX. */
+#define PATH_MAX 16384
+#endif
+
/**
* Number of threads to run in the thread pool. Should (roughly) match
* the number of cores on your system.