From bc3a32a84facb8114a8c7de87025f972d0281098 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Sat, 2 Jun 2012 20:45:08 -0400 Subject: [PATCH] afsd: include sys/resource.h in afsd_kernel.c With a recent glibc update, sys/wait.h no longer includes sys/resource.h unless __USE_SVID, __USE_XOPEN or __USE_XOPEN2K8 are set. Don't rely on the indirect inclusion to get the bits we need; include it directly in afsd_kernel.c. This include used to be there but was dropped when afsd_kernel.c was split off. Change-Id: I1bfd2e0c340e15ca44472aa89614f088e0c0ce0c Reviewed-on: http://gerrit.openafs.org/7522 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/afsd/afsd_kernel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/afsd/afsd_kernel.c b/src/afsd/afsd_kernel.c index d074cbf769..eeb42afb46 100644 --- a/src/afsd/afsd_kernel.c +++ b/src/afsd/afsd_kernel.c @@ -23,6 +23,10 @@ #include #include +#if defined(AFS_LINUX20_ENV) +#include +#endif + #ifdef HAVE_SYS_FS_TYPES_H #include #endif