All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.15] xenstore: fix build on {Net/Free}BSD
@ 2021-02-01 15:53 Roger Pau Monne
  2021-02-01 16:32 ` Ian Jackson
  0 siblings, 1 reply; 2+ messages in thread
From: Roger Pau Monne @ 2021-02-01 15:53 UTC (permalink / raw)
  To: xen-devel; +Cc: Roger Pau Monne, Ian Jackson, Wei Liu, Juergen Gross

The endian.h header is in sys/ on NetBSD and FreeBSD.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH for-4.15] xenstore: fix build on {Net/Free}BSD
  2021-02-01 15:53 [PATCH for-4.15] xenstore: fix build on {Net/Free}BSD Roger Pau Monne
@ 2021-02-01 16:32 ` Ian Jackson
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Jackson @ 2021-02-01 16:32 UTC (permalink / raw)
  To: Roger Pau Monne; +Cc: xen-devel, Wei Liu, Juergen Gross

Roger Pau Monne writes ("[PATCH for-4.15] xenstore: fix build on {Net/Free}BSD"):
> The endian.h header is in sys/ on NetBSD and FreeBSD.

That's a bit irritating.  Ah well.

Acked-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>

Ian.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-01 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 15:53 [PATCH for-4.15] xenstore: fix build on {Net/Free}BSD Roger Pau Monne
2021-02-01 16:32 ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.