mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xenstore: fix build on {Net/Free}BSD
The endian.h header is in sys/ on NetBSD and FreeBSD. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Acked-by: Ian Jackson <iwj@xenproject.org> Release-Acked-by: Ian Jackson <iwj@xenproject.org>
This commit is contained in:
1 parent
419cd07895
commit
ffbb8aa282
1 file changed
+4
@@ -21,7 +21,11 @@
|
||||
#ifndef XENSTORE_STATE_H
|
||||
#define XENSTORE_STATE_H
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
#include <sys/endian.h>
|
||||
#else
|
||||
#include <endian.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifndef htobe32
|
||||
|
||||