Linux v4.11: cred.h is no longer included in sched.h 74/12574/2
authorMark Vitale <mvitale@sinenomine.net>
Fri, 24 Mar 2017 01:36:44 +0000 (18:36 -0700)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 5 Apr 2017 14:17:47 +0000 (10:17 -0400)
commitc89fd17df1032ec2eacc0d0c9b73e19c5e8db7d2
treec7262625d2344217bedc0bdf1d3bb86b45484510
parentad001550949b612ff6b4899fa8da50ee58f87533
Linux v4.11: cred.h is no longer included in sched.h

With Linux commit e26512fea5bcd6602dbf02a551ed073cd4529449, cred.h is no
longer included in sched.h.

Several components of libafs which require cred.h were picking it by
including sched.h.

Instead, explicitly add an include for cred.h. cred.h begins with a
customary one-shot to prevent multiple loads:

 #ifndef _LINUX_CRED_H
 #define _LINUX_CRED_H

Therefore we don't need a new autoconf test or preprocessor conditional
to prevent redundant includes on older Linux releases.

Change-Id: Ifc496c83141d2cfbd417133feb6d87c1146e5014
Reviewed-on: https://gerrit.openafs.org/12574
Tested-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Joe Gorse <jhgorse@gmail.com>
Tested-by: Joe Gorse <jhgorse@gmail.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
src/afs/LINUX/osi_machdep.h