]>
Commit | Line | Data |
---|---|---|
550ccf75 PP |
1 | Description: Further fixes to the build on the GNU Hurd |
2 | - include <sys/file.h> for LOCK_EX | |
3 | - define MAXHOSTNAMELEN if absent | |
4 | Forwarded: no | |
5 | Author: Peter Pentchev <roam@ringlet.net> | |
6 | Last-Update: 2010-10-16 | |
7 | ||
8 | --- a/spool.c | |
9 | +++ b/spool.c | |
10 | @@ -32,6 +32,7 @@ | |
11 | * SUCH DAMAGE. | |
12 | */ | |
13 | ||
14 | +#include <sys/file.h> | |
15 | #include <sys/stat.h> | |
16 | ||
17 | #include <ctype.h> | |
18 | --- a/util.c | |
19 | +++ b/util.c | |
20 | @@ -33,6 +33,7 @@ | |
21 | */ | |
22 | ||
23 | #include <sys/param.h> | |
24 | +#include <sys/file.h> | |
25 | #include <errno.h> | |
26 | #include <fcntl.h> | |
27 | #include <netdb.h> | |
28 | @@ -43,6 +44,14 @@ | |
29 | ||
30 | #include "dma.h" | |
31 | ||
32 | +/** | |
33 | + * A quick'n'dirty hack to get dma to build on the GNU Hurd. | |
34 | + * A real fix would dynamically allocate the hostname array. | |
35 | + */ | |
36 | +#ifndef MAXHOSTNAMELEN | |
37 | +#define MAXHOSTNAMELEN 1024 | |
38 | +#endif | |
39 | + | |
40 | const char * | |
41 | hostname(void) | |
42 | { |