With Ubuntu linux-libc-dev 2.6.38-11.50 I got error mentioned bellow. This patch fixes the issue. prlimit.c:77:88: error: 'RLIMIT_RTTIME' undeclared here Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- configure.ac | 1 + sys-utils/prlimit.c | 7 +++++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 88aced9..873f1b2 100644 --- a/configure.ac +++ b/configure.ac @@ -136,6 +136,7 @@ AC_CHECK_HEADERS( rpcsvc/nfs_prot.h \ stdlib.h \ asm/io.h \ + asm-generic/resource.h \ sys/disk.h \ sys/disklabel.h \ sys/ioctl.h \ diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c index 74c7fc9..25949f1 100644 --- a/sys-utils/prlimit.c +++ b/sys-utils/prlimit.c @@ -26,6 +26,9 @@ #include <assert.h> #include <unistd.h> #include <sys/resource.h> +#ifdef HAVE_ASM_GENERIC_RESOURCE_H +# include <asm-generic/resource.h> +#endif #include "c.h" #include "nls.h" @@ -33,6 +36,10 @@ #include "xalloc.h" #include "strutils.h" +#ifndef RLIMIT_RTTIME +# define RLIMIT_RTTIME 15 +#endif + enum { AS, CORE, -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html