[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xenstore: fix build on {Net/Free}BSD
commit ffbb8aa282de262403275f2395d8540818cf576e Author: Roger Pau Monne <roger.pau@xxxxxxxxxx> AuthorDate: Mon Feb 1 16:53:17 2021 +0100 Commit: Wei Liu <wl@xxxxxxx> CommitDate: Mon Feb 1 18:27:50 2021 +0000 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@xxxxxxxxxx> Acked-by: Ian Jackson <iwj@xxxxxxxxxxxxxx> Release-Acked-by: Ian Jackson <iwj@xxxxxxxxxxxxxx> --- tools/xenstore/include/xenstore_state.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/xenstore/include/xenstore_state.h b/tools/xenstore/include/xenstore_state.h index d2a9307400..1bd443f61a 100644 --- 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 -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |