]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
freezer-h-existance-20070104
authorMarc Dionne <marc.dionne@technoconseil.com>
Thu, 4 Jan 2007 21:15:16 +0000 (21:15 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 4 Jan 2007 21:15:16 +0000 (21:15 +0000)
FIXES 50941

only include freezer.h if it exists

src/afs/LINUX/osi_sleep.c
src/rx/rx_kcommon.h

index 1e873783ee6bb5ae16fa96132af92ec8aa28ec54..5626292fc462690ac4c372e1a0d53d497f585e0e 100644 (file)
@@ -17,7 +17,9 @@ RCSID
 #include "afsincludes.h"       /* Afs-based standard headers */
 #include "afs/afs_stats.h"     /* afs statistics */
 
+#if defined(FREEZER_H_EXISTS)
 #include <linux/freezer.h>
+#endif
 
 static int osi_TimedSleep(char *event, afs_int32 ams, int aintok);
 
index a2903d07dae8a1ca74a44caa03625acbe0d6e127..14a0b6db51570a455ba20ef76755d001d82654a6 100644 (file)
@@ -112,7 +112,9 @@ typedef unsigned short etap_event_t;
 #endif
 #ifdef AFS_LINUX22_ENV
 #include "h/sched.h"
+#if defined(FREEZER_H_EXISTS)
 #include "h/freezer.h"
+#endif
 #include "h/netdevice.h"
 #include "linux/if.h"
 #else