From: Russ Allbery Date: Sat, 10 Jul 2010 01:08:12 +0000 (-0700) Subject: Include linux/freezer.h in rx_kmutex.c X-Git-Tag: openafs-devel-1_5_76~157 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ad470b2ed25cdf99f0388947913e392c2d8b67a9;p=packages%2Fo%2Fopenafs.git Include linux/freezer.h in rx_kmutex.c rx_kmutex.c calls refrigerator(), which is prototyped in linux/freezer.h, but was not including it, causing build failures on Linux 2.6.32-5 (Debian). Change-Id: I3867be6e7b8478d6fab8b97a4c923f979029517e Reviewed-on: http://gerrit.openafs.org/2380 Tested-by: Russ Allbery Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/rx/LINUX/rx_kmutex.c b/src/rx/LINUX/rx_kmutex.c index 27f5577e4..3ddd1bf5a 100644 --- a/src/rx/LINUX/rx_kmutex.c +++ b/src/rx/LINUX/rx_kmutex.c @@ -21,6 +21,10 @@ #include "rx_kmutex.h" #include "rx/rx_kernel.h" +#ifdef HAVE_LINUX_FREEZER_H +# include +#endif + void afs_mutex_init(afs_kmutex_t * l) {