]> git.pld-linux.org Git - packages/apachetop.git/commitdiff
- max path can be much longer than 128
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 12 Apr 2009 21:34:51 +0000 (21:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apachetop-maxpath.patch -> 1.1

apachetop-maxpath.patch [new file with mode: 0644]

diff --git a/apachetop-maxpath.patch b/apachetop-maxpath.patch
new file mode 100644 (file)
index 0000000..9ed935f
--- /dev/null
@@ -0,0 +1,28 @@
+--- apachetop-0.12.6/src/apachetop.h~  2009-04-12 23:29:29.388766094 +0200
++++ apachetop-0.12.6/src/apachetop.h   2009-04-12 23:30:19.855223788 +0200
+@@ -1,6 +1,8 @@
+ #ifndef _APACHETOP_H_
+ #define _APACHETOP_H_
++#define _GNU_SOURCE=1
++
+ #if HAVE_CONFIG_H
+ # include "config.h"
+ #endif
+@@ -25,6 +25,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <limits.h>
+ #if TIME_WITH_SYS_TIME
+ # include <sys/time.h>
+@@ -90,7 +92,7 @@
+ #define getMAX(a,b) (a > b ? a : b)
+ #ifndef MAXPATHLEN
+-# define MAXPATHLEN 128
++# define MAXPATHLEN (PATH_MAX+1)
+ #endif
+ /* upon startup, each input file is put into an element of this array,
This page took 0.062693 seconds and 4 git commands to generate.