processes plugin: Fix the ARG_MAX stuff yet again.
[collectd.git] / src / processes.c
index 5b244a6..0b82482 100644 (file)
 #  ifndef CONFIG_HZ
 #    define CONFIG_HZ 100
 #  endif
-#  ifndef ARG_MAX
-#    if defined(HAVE_SYSCONF) && HAVE_SYSCONF && defined(_SC_ARG_MAX)
-#      define ARG_MAX sysconf(_SC_ARG_MAX)
-#    else
-#      define ARG_MAX 4096
-#    endif
-#  endif
 /* #endif KERNEL_LINUX */
 
 #elif HAVE_LIBKVM_GETPROCS
 # include <regex.h>
 #endif
 
+#ifndef ARG_MAX
+#  define ARG_MAX 4096
+#endif
+
 #define BUFSIZE 256
 
 static const char *config_keys[] =