freezer-h-existance-20070104

FIXES 50941

only include freezer.h if it exists
This commit is contained in:
Marc Dionne 2007-01-04 21:15:16 +00:00 committed by Derrick Brashear
parent 182a18931a
commit 1a5628981e
2 changed files with 4 additions and 0 deletions

View 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);

View 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