From: Marc Dionne Date: Thu, 4 Jan 2007 21:17:05 +0000 (+0000) Subject: DEVEL15-freezer-h-existance-20070104 X-Git-Tag: openafs-devel-1_5_14~29 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=c8d0060ec492f46af5242bfebb2103e0e59a002b;hp=276410435f381ac42d885615ca0555bd5065d44a DEVEL15-freezer-h-existance-20070104 FIXES 50941 only include freezer.h if it exists (cherry picked from commit 1a5628981e0042bed07ebedd72f715848734a51b) --- diff --git a/src/afs/LINUX/osi_sleep.c b/src/afs/LINUX/osi_sleep.c index 1e87378..5626292 100644 --- a/src/afs/LINUX/osi_sleep.c +++ b/src/afs/LINUX/osi_sleep.c @@ -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 +#endif static int osi_TimedSleep(char *event, afs_int32 ams, int aintok); diff --git a/src/rx/rx_kcommon.h b/src/rx/rx_kcommon.h index 94b36f0..4b4d2a3 100644 --- a/src/rx/rx_kcommon.h +++ b/src/rx/rx_kcommon.h @@ -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