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:
Roger Pau Monne authored and Wei Liu committed 2021-02-01 18:27:50 +00:00
1 parent 419cd07895
commit ffbb8aa282
1 file changed
+4
+4
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.