aboutsummaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-05-15 14:39:58 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-05-15 14:57:50 +0300
commit2a0871b731fb068bfab6acc04a473914149b87b0 (patch)
tree15434c77cfe932207711b3ad137636c2a4d28859 /src/examples
parentbc36476b9e4f797df4b287d855a3121567dbc091 (diff)
downloadlibmicrohttpd-2a0871b731fb068bfab6acc04a473914149b87b0.tar.gz
libmicrohttpd-2a0871b731fb068bfab6acc04a473914149b87b0.zip
Fixed build from source on GNU Hurd
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/demo.c6
-rw-r--r--src/examples/demo_https.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/examples/demo.c b/src/examples/demo.c
index 4e89c4e3..e93fb34b 100644
--- a/src/examples/demo.c
+++ b/src/examples/demo.c
@@ -48,6 +48,12 @@
48#define CPU_COUNT 2 48#define CPU_COUNT 2
49#endif 49#endif
50 50
51#ifndef PATH_MAX
52/* Some platforms (namely: GNU Hurd) do no define PATH_MAX.
53 As it is only example for MHD, just use reasonable value for PATH_MAX. */
54#define PATH_MAX 16384
55#endif
56
51/** 57/**
52 * Number of threads to run in the thread pool. Should (roughly) match 58 * Number of threads to run in the thread pool. Should (roughly) match
53 * the number of cores on your system. 59 * the number of cores on your system.
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c
index 14ca0bf7..f2230b16 100644
--- a/src/examples/demo_https.c
+++ b/src/examples/demo_https.c
@@ -51,6 +51,12 @@
51#define CPU_COUNT 2 51#define CPU_COUNT 2
52#endif 52#endif
53 53
54#ifndef PATH_MAX
55/* Some platforms (namely: GNU Hurd) do no define PATH_MAX.
56 As it is only example for MHD, just use reasonable value for PATH_MAX. */
57#define PATH_MAX 16384
58#endif
59
54/** 60/**
55 * Number of threads to run in the thread pool. Should (roughly) match 61 * Number of threads to run in the thread pool. Should (roughly) match
56 * the number of cores on your system. 62 * the number of cores on your system.