projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
419cd07
)
xenstore: fix build on {Net/Free}BSD
author
Roger Pau Monne
<roger.pau@citrix.com>
Mon, 1 Feb 2021 15:53:17 +0000
(16:53 +0100)
committer
Wei Liu
<wl@xen.org>
Mon, 1 Feb 2021 18:27:50 +0000
(18:27 +0000)
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>
tools/xenstore/include/xenstore_state.h
patch
|
blob
|
history
diff --git
a/tools/xenstore/include/xenstore_state.h
b/tools/xenstore/include/xenstore_state.h
index d2a930740008c7bde225a1681f8266a670e88fa3..1bd443f61a0ca673d264a2f4d7cddb7a30b6eae5 100644
(file)
--- a/
tools/xenstore/include/xenstore_state.h
+++ b/
tools/xenstore/include/xenstore_state.h
@@
-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