summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/cpufreqd/files/cpufreqd-path-max.patch')
-rw-r--r--sys-power/cpufreqd/files/cpufreqd-path-max.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-power/cpufreqd/files/cpufreqd-path-max.patch b/sys-power/cpufreqd/files/cpufreqd-path-max.patch
new file mode 100644
index 0000000..55cd481
--- /dev/null
+++ b/sys-power/cpufreqd/files/cpufreqd-path-max.patch
@@ -0,0 +1,17 @@
+diff -Nur cpufreqd-2.4.2/src/cpufreqd.h cpufreqd-2.4.2-new/src/cpufreqd.h
+--- cpufreqd-2.4.2/src/cpufreqd.h 2010-03-07 13:44:56.000000000 +0200
++++ cpufreqd-2.4.2-new/src/cpufreqd.h 2010-06-09 22:36:30.548346769 +0300
+@@ -54,6 +54,12 @@
+ #define DEFAULT_VERBOSITY 3
+
+ #define MAX_STRING_LEN 255
+-#define MAX_PATH_LEN 512
++
++#ifdef HAVE_LIMITS_H
++#include "limits.h"
++#define MAX_PATH_LEN PATH_MAX
++#else
++#define MAX_PATH_LEN 512
++#endif
+
+ #endif /* __CPUFREQD_H__ */