diff --git a/src/cpufreqd.h b/src/cpufreqd.h index 9733a5f..8cf5713 100644 --- a/src/cpufreqd.h +++ b/src/cpufreqd.h @@ -54,6 +54,12 @@ #define DEFAULT_VERBOSITY 3 #define MAX_STRING_LEN 255 -#define MAX_PATH_LEN 512 + +#ifdef HAVE_LIMITS_H +# include +# define MAX_PATH_LEN PATH_MAX +#else +# define MAX_PATH_LEN 512 +#endif #endif /* __CPUFREQD_H__ */