From 33ce7a9308c8a71fbfcea82a935e32521031f48d Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sat, 11 Sep 2010 12:43:35 +0100 Subject: [PATCH] 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 --- src/afs/LINUX/osi_groups.c | 11 +++++++++++ src/afs/sysincludes.h | 10 ---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/afs/LINUX/osi_groups.c b/src/afs/LINUX/osi_groups.c index 1191cf2..db4933a 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 a126fb6..916d02a 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. -- 1.9.4