]>
Commit | Line | Data |
---|---|---|
302eaaaf AM |
1 | --- apachetop-0.12.6/src/apachetop.h~ 2009-04-12 23:29:29.388766094 +0200 |
2 | +++ apachetop-0.12.6/src/apachetop.h 2009-04-12 23:30:19.855223788 +0200 | |
3 | @@ -1,6 +1,8 @@ | |
4 | #ifndef _APACHETOP_H_ | |
5 | #define _APACHETOP_H_ | |
6 | ||
7 | +#define _GNU_SOURCE=1 | |
8 | + | |
9 | #if HAVE_CONFIG_H | |
10 | # include "config.h" | |
11 | #endif | |
12 | @@ -25,6 +25,7 @@ | |
13 | #include <unistd.h> | |
14 | #include <sys/types.h> | |
15 | #include <sys/stat.h> | |
16 | +#include <limits.h> | |
17 | ||
18 | #if TIME_WITH_SYS_TIME | |
19 | # include <sys/time.h> | |
20 | @@ -90,7 +92,7 @@ | |
21 | #define getMAX(a,b) (a > b ? a : b) | |
22 | ||
23 | #ifndef MAXPATHLEN | |
24 | -# define MAXPATHLEN 128 | |
25 | +# define MAXPATHLEN (PATH_MAX+1) | |
26 | #endif | |
27 | ||
28 | /* upon startup, each input file is put into an element of this array, |