[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-4.15] xenstore: fix build on {Net/Free}BSD
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Date: Mon, 1 Feb 2021 16:53:17 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+DPZlqJy76uCRvHmXUZW2JcqPlPoOx4QIRUbMcfhIqg=; b=SyrTSbySOgGqcALJ61oi+W7md9LOKtt1P2YKRAxNM302+3kMO9LYhNSzawcuLsIWKGmtz77Zv6Efuvf9rINkNa41Bwo3+h2bL7LDzYrvYl0WLWCdyHEmYLWofU8aOIHnZEfcapQGAXtt18JGpJlxHvhkhJPyiiFv6hhFW4UWQIY6caeffEPBwMhOl5hFqv+AerIHqlk4C1kNoYJ+8SNYDQUDKnLvBhdP5Iq5TathV2yaydBOgT0WFFaGuLaLtszq2bJSuSozdKGYAdCSCPwdoK3YdToWr59FDEp8YJyuzq8RncgZXEKHn6z7AMkwMhCTsYJYgEOGeD25R6rpOqWJTg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BsbH68arlPt3ocUXg97ZmN6V7XNDXi0wLyPJAwc0x+INvi5ImnnIy4TQpUvoUvJqF2kcKn9tE3KQOLfHguYZ9tx5Irx+6S9RzqBPkrxbh4Yg6Ezm5BdiqAWKWESH9RKN/xGRIVtZH7QEE1+08a5EIixmePqRy4T+BJ7MnHmJ89JCt1eW94nnbm2K2uPFofU85QO6/r18dMVyz7pNO5El7a/CuS2GgR1xRplDXsge1SXy4SzMOBp8z+TNXmNrAJSOH65MODM8DWMzx+1Ui6ZnvXFwcsPADDRF3kG+MKAhVSjfZQPWGv+SC4fd83NlWV3UIGcIBqGZW8BuuKc9KYGJbA==
- Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
- Delivery-date: Mon, 01 Feb 2021 15:53:50 +0000
- Ironport-sdr: RPBavhJpHSuOHx0j+Bng8nXyIOYuVzWnqDUqjnRXdXvDVzCZFWpWWVDVplfscdt0eKUBvhshIg ZcT8FEunAdUn8i6rYwLhUmHudxw2o/Na1go4Q4Pp4Rh7GNi/y8IpzohkfE25JZdcVjCsjLb71P 4on6y4uAihir+cx2zczE0LqlvMtP2V8DT9ReE/baEjT2wpavKH1VI2DmTty2rAxbBSP3A9TYBw q7u7cOuHxHsMhRbPqQnp23mdkpBjxSH3bf86/W+i9fslJTxmQ5ARitTFTvrHdflbq5w+MBbSGq vOM=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
The endian.h header is in sys/ on NetBSD and FreeBSD.
Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
Only tested on FreeBSD, but from my reading the header is at the same
place on NetBSD.
---
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
--
2.29.2
|