summaryrefslogtreecommitdiff
blob: 55cd481b860eaa582d0676b93f1ce72cc45c8e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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__ */