summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aea179c)
raw | patch | inline | side by side (parent: aea179c)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 31 Jan 2009 22:55:30 +0000 (23:55 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 31 Jan 2009 22:55:30 +0000 (23:55 +0100) |
Apparently the GNU libc 2.8 removed the macro for some unholy reason. We
either use `sysconf(3)' transparently (if available) or 4kByte (the
POSIX minimum).
Thanks to dD0T for reporting the problem :)
either use `sysconf(3)' transparently (if available) or 4kByte (the
POSIX minimum).
Thanks to dD0T for reporting the problem :)
configure.in | patch | blob | history | |
src/processes.c | patch | blob | history |
diff --git a/configure.in b/configure.in
index a62b94a1bf16f34a91c1809d4818ce03c626b80f..e54d87e01da36863093015e473013be4a3d40674 100644 (file)
--- a/configure.in
+++ b/configure.in
# Checks for library functions.
#
AC_PROG_GCC_TRADITIONAL
-AC_CHECK_FUNCS(gettimeofday select strdup strtol getaddrinfo getnameinfo strchr memcpy strstr strcmp strncmp strncpy strlen strncasecmp strcasecmp openlog closelog)
+AC_CHECK_FUNCS(gettimeofday select strdup strtol getaddrinfo getnameinfo strchr memcpy strstr strcmp strncmp strncpy strlen strncasecmp strcasecmp openlog closelog sysconf)
AC_FUNC_STRERROR_R
diff --git a/src/processes.c b/src/processes.c
index 0d670f5bb3787e9e473ce7367d3bbe1e392c72e0..5b244a6cda6da977f82ab5e6d04caa7e0601a2ce 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
# 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