Re: swsusp: fix compilation for other architectures

Pavel Machek (pavel@ucw.cz)
Tue, 28 May 2002 10:29:41 +0200


Hi!

> > Currently, on machine where suspend is not yet supported, compilation
> > fails even in case user did not actually requested suspend. This
> > "fixes" it -- compilation only fails when suspend is needed and not
> > supported. Please apply,
> > Pavel
> >
> > --- clean/include/asm-i386/suspend.h Sun May 26 19:32:03 2002
> > +++ linux-swsusp/include/asm-i386/suspend.h Mon May 27 19:11:25 2002
> > @@ -1,13 +1,8 @@
> > -#ifndef __ASM_I386_SUSPEND_H
> > -#define __ASM_I386_SUSPEND_H
> > -#endif
>
> You probably want to move the #endif to the end of the file instead of
> removing it; having #ifndef/#define/#endif-traps for all header-files is
> good practice.

Actually, I do not want to. This header file is somehow special, and
suspend.c needs special "private" part of it, too. I'll clean that up
later.

Pavel

-- 
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/