]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Linux v4.11: cred.h is no longer included in sched.h
authorMark Vitale <mvitale@sinenomine.net>
Fri, 24 Mar 2017 01:36:44 +0000 (18:36 -0700)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 13 Apr 2017 11:19:57 +0000 (07:19 -0400)
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.

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>
(cherry picked from commit c89fd17df1032ec2eacc0d0c9b73e19c5e8db7d2)

Change-Id: I235a6272c55a8f734be07b578bbb1a324cf34e2e
Reviewed-on: https://gerrit.openafs.org/12590
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/LINUX/osi_machdep.h

index 7b457ca603238dcb200376011a4f5006639850d9..9d3faa90355658e82f0a569c2698de4240466e98 100644 (file)
@@ -71,6 +71,8 @@
 
 #define afs_hz HZ
 #include "h/sched.h"
+/* in case cred.h is not included in sched.h */
+#include "h/cred.h"
 #if defined(HAVE_LINUX_CURRENT_KERNEL_TIME)
 static inline time_t osi_Time(void) {
     struct timespec xtime;