From 7595adc20b9ae1807cf720c72917eb6d133c765f Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Fri, 19 Mar 2010 09:31:04 -0500 Subject: [PATCH] volume_inline.h does not need sys/file.h src/vol/volume_inline.h does not need sys/file.h; at one point, it was using macros from sys/file.h for locking constants, but now we use the lwp/lock.h constants. So, include that instead. Also, only include it for DAFS, since we only use the constants in the DAFS case. Thanks, Jeffrey Altman. Change-Id: I114b438d7fb1fbb3a35bdfa0717ac334c7f80355 Reviewed-on: http://gerrit.openafs.org/1596 Tested-by: Andrew Deason Reviewed-by: Jeffrey Altman --- src/vol/volume_inline.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vol/volume_inline.h b/src/vol/volume_inline.h index fb5a479c2..e63708e3d 100644 --- a/src/vol/volume_inline.h +++ b/src/vol/volume_inline.h @@ -7,14 +7,16 @@ * directory or online at http://www.openafs.org/dl/license10.html */ -#include - #ifndef _AFS_VOL_VOLUME_INLINE_H #define _AFS_VOL_VOLUME_INLINE_H 1 #include "volume.h" #include "partition.h" +#ifdef AFS_DEMAND_ATTACH_FS +# include "lock.h" +#endif + /** * tell caller whether the given program type represents a salvaging * program. -- 2.39.5