afsd: include sys/resource.h in afsd_kernel.c
authorMarc Dionne <marc.c.dionne@gmail.com>
Sun, 3 Jun 2012 00:45:08 +0000 (20:45 -0400)
committerDerrick Brashear <shadow@dementix.org>
Thu, 7 Jun 2012 12:13:22 +0000 (05:13 -0700)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/afsd/afsd_kernel.c

index d074cbf..eeb42af 100644 (file)
 #include <sys/file.h>
 #include <sys/wait.h>
 
+#if defined(AFS_LINUX20_ENV)
+#include <sys/resource.h>
+#endif
+
 #ifdef HAVE_SYS_FS_TYPES_H
 #include <sys/fs_types.h>
 #endif