david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Don't build relocate() under KEEP_IT_REAL

This commit is contained in:
Michael Brown 2005-04-09 17:05:35 +00:00
parent 2fa14f2f1d
commit 44eee81d11
2 changed files with 13 additions and 0 deletions

View File

@ -4,6 +4,8 @@
#include "etherboot.h" #include "etherboot.h"
#include "relocate.h" #include "relocate.h"
#ifndef KEEP_IT_REAL
/* by Eric Biederman */ /* by Eric Biederman */
/* On some platforms etherboot is compiled as a shared library, and we use /* On some platforms etherboot is compiled as a shared library, and we use
@ -191,3 +193,5 @@ void relocate ( void ) {
*/ */
} }
} }
#endif /* ! KEEP_IT_REAL */

View File

@ -1,6 +1,15 @@
#ifndef RELOCATE_H #ifndef RELOCATE_H
#define RELOCATE_H #define RELOCATE_H
#ifdef KEEP_IT_REAL
/* relocate() is conceptually impossible with KEEP_IT_REAL */
#define relocate()
#else
extern void relocate ( void ); extern void relocate ( void );
#endif
#endif /* RELOCATE_H */ #endif /* RELOCATE_H */