diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-15 14:39:58 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-15 14:57:50 +0300 |
commit | 2a0871b731fb068bfab6acc04a473914149b87b0 (patch) | |
tree | 15434c77cfe932207711b3ad137636c2a4d28859 | |
parent | bc36476b9e4f797df4b287d855a3121567dbc091 (diff) | |
download | libmicrohttpd-2a0871b731fb068bfab6acc04a473914149b87b0.tar.gz libmicrohttpd-2a0871b731fb068bfab6acc04a473914149b87b0.zip |
Fixed build from source on GNU Hurd
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/examples/demo.c | 6 | ||||
-rw-r--r-- | src/examples/demo_https.c | 6 |
3 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,6 @@ | |||
1 | Web May 15 14:54:00 MSK 2019 | ||
2 | Fixed build from source on GNU Hurd. -EG | ||
3 | |||
1 | Mon May 6 11:58:00 MSK 2019 | 4 | Mon May 6 11:58:00 MSK 2019 |
2 | Updated README and COPYING files. MHD remains LGPLv2.1-licensed. -EG | 5 | Updated README and COPYING files. MHD remains LGPLv2.1-licensed. -EG |
3 | 6 | ||
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. |