mirror of
https://github.com/xcat2/xNBA.git
synced 2025-08-22 03:00:30 +00:00
Don't build relocate() under KEEP_IT_REAL
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include "etherboot.h"
|
||||
#include "relocate.h"
|
||||
|
||||
#ifndef KEEP_IT_REAL
|
||||
|
||||
/* by Eric Biederman */
|
||||
|
||||
/* On some platforms etherboot is compiled as a shared library, and we use
|
||||
@@ -191,3 +193,5 @@ void relocate ( void ) {
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* ! KEEP_IT_REAL */
|
||||
|
@@ -1,6 +1,15 @@
|
||||
#ifndef RELOCATE_H
|
||||
#define RELOCATE_H
|
||||
|
||||
#ifdef KEEP_IT_REAL
|
||||
|
||||
/* relocate() is conceptually impossible with KEEP_IT_REAL */
|
||||
#define relocate()
|
||||
|
||||
#else
|
||||
|
||||
extern void relocate ( void );
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* RELOCATE_H */
|
||||
|
Reference in New Issue
Block a user