diff -Naur apachetop-0.12.6.orig/configure.ac apachetop-0.12.6/configure.ac --- apachetop-0.12.6.orig/configure.ac 2009-02-26 01:11:52.000000000 -0500 +++ apachetop-0.12.6/configure.ac 2009-02-26 01:12:35.000000000 -0500 @@ -34,7 +34,8 @@ # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h \ - string.h strings.h sys/socket.h time.h sys/time.h]) + string.h strings.h sys/socket.h time.h sys/time.h \ + linux/limit.h sys/param.h]) # Checks for typedefs, structures, and compiler characteristics. #AC_HEADER_STDBOOL # not in 2.53? diff -Naur apachetop-0.12.6.orig/src/apachetop.h apachetop-0.12.6/src/apachetop.h --- apachetop-0.12.6.orig/src/apachetop.h 2009-02-26 01:11:52.000000000 -0500 +++ apachetop-0.12.6/src/apachetop.h 2009-02-26 01:13:42.000000000 -0500 @@ -89,8 +89,12 @@ #define getMIN(a,b) (a < b ? a : b) #define getMAX(a,b) (a > b ? a : b) -#ifndef MAXPATHLEN -# define MAXPATHLEN 128 +#ifndef HAVE_SYS_PARAM_H +# include +#endif + +#ifndef HAVE_LINUX_LIMITS_H +# include #endif /* upon startup, each input file is put into an element of this array,