From: Simon Wilkinson Date: Sat, 11 Sep 2010 11:43:35 +0000 (+0100) Subject: Linux: Move keyring includes where they're needed X-Git-Tag: upstream/1.8.0_pre1^2~4831 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=33ce7a9308c8a71fbfcea82a935e32521031f48d;p=packages%2Fo%2Fopenafs.git Linux: Move keyring includes where they're needed We don't need the keyring headers in every file, so reduce namespace pollution by just including them in osi_groups.c, which is the only place that uses them. Change-Id: I1f8af43439d63bec4df278209d2bb5c86b1c4d05 Reviewed-on: http://gerrit.openafs.org/2746 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/LINUX/osi_groups.c b/src/afs/LINUX/osi_groups.c index 1191cf2a6..db4933a8e 100644 --- a/src/afs/LINUX/osi_groups.c +++ b/src/afs/LINUX/osi_groups.c @@ -28,6 +28,17 @@ #include +#if defined(LINUX_KEYRING_SUPPORT) +# include +# include +# if defined(HAVE_LINUX_KEY_TYPE_H) +# include +# endif +# ifndef KEY_ALLOC_IN_QUOTA +# define KEY_ALLOC_IN_QUOTA 1 +# endif +#endif + #ifdef AFS_LINUX26_ONEGROUP_ENV # define NUMPAGGROUPS 1 diff --git a/src/afs/sysincludes.h b/src/afs/sysincludes.h index a126fb644..916d02a30 100644 --- a/src/afs/sysincludes.h +++ b/src/afs/sysincludes.h @@ -135,16 +135,6 @@ # include # endif # include -# if defined(LINUX_KEYRING_SUPPORT) -# include -# include -# if defined(HAVE_LINUX_KEY_TYPE_H) -# include -# endif -# ifndef KEY_ALLOC_IN_QUOTA -# define KEY_ALLOC_IN_QUOTA 1 -# endif -# endif # endif /* Avoid conflicts with coda overloading AFS type namespace. Must precede * inclusion of uaccess.h.