mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Various fixes to mini-os needed to build lwip 1.3.2: - Don't build the tests. - Add BSD-style endianness macros to endian.h. - free() is called via a function pointer so it needs to be a real function. Do the same for malloc() and realloc(). Signed-off-by: David Vrabel <david.vrabel@citrix.com> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Committed-by: Keir Fraser <keir@xen.org>
20 lines
400 B
C
20 lines
400 B
C
#ifndef _ENDIAN_H_
|
|
#define _ENDIAN_H_
|
|
|
|
#define __LITTLE_ENDIAN 1234
|
|
#define __BIG_ENDIAN 4321
|
|
#define __PDP_ENDIAN 3412
|
|
|
|
#define ARCH_ENDIAN_H
|
|
/* This will define __BYTE_ORDER for the current arch */
|
|
#include <arch_endian.h>
|
|
#undef ARCH_ENDIAN_H
|
|
|
|
#include <arch_wordsize.h>
|
|
|
|
#define BYTE_ORDER __BYTE_ORDER
|
|
#define BIG_ENDIAN __BIG_ENDIAN
|
|
#define LITTLE_ENDIAN __LITTLE_ENDIAN
|
|
|
|
#endif /* endian.h */
|