Skip to contentSkip to conversation

xenstore: Fix all builds

PATCH In review Andrew Cooper 4 participants 4 messages Feb 1, 2021 – Feb 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenstore: Fix all builds

This diff is easier viewed through cat -A

  diff --git a/tools/xenstore/include/xenstore_state.h b/tools/xenstore/include/xenstore_state.h$
  index 1bd443f61a..f7e4da2b2c 100644$
  --- a/tools/xenstore/include/xenstore_state.h$
  +++ b/tools/xenstore/include/xenstore_state.h$
  @@ -21,7 +21,7 @@$
   #ifndef XENSTORE_STATE_H$
   #define XENSTORE_STATE_H$
   $
  -#if defined(__FreeBSD__) ||M-BM- defined(__NetBSD__)$
  +#if defined(__FreeBSD__) || defined(__NetBSD__)$
   #include <sys/endian.h>$
   #else$
   #include <endian.h>$

A non-breaking space isn't a valid C preprocessor token.

Fixes ffbb8aa282de ("xenstore: fix build on {Net/Free}BSD")

---
CC: Roger Pau Monné <[email protected]>
CC: Ian Jackson <[email protected]>

---
 tools/xenstore/include/xenstore_state.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstore/include/xenstore_state.h +1 -1
index 1bd443f61a..f7e4da2b2c 100644
@@ -21,7 +21,7 @@
 #ifndef XENSTORE_STATE_H
 #define XENSTORE_STATE_H
 
-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 #include <sys/endian.h>
 #else
 #include <endian.h>
Signature · 1 line
2.11.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Andrew Cooper

This diff is easier viewed through cat -A

  diff --git a/tools/xenstore/include/xenstore_state.h b/tools/xenstore/include/xenstore_state.h$
  index 1bd443f61a..f7e4da2b2c 100644$
  --- a/tools/xenstore/include/xenstore_state.h$
  +++ b/tools/xenstore/include/xenstore_state.h$
  @@ -21,7 +21,7 @@$
   #ifndef XENSTORE_STATE_H$
   #define XENSTORE_STATE_H$
   $
  -#if defined(__FreeBSD__) ||M-BM- defined(__NetBSD__)$
  +#if defined(__FreeBSD__) || defined(__NetBSD__)$
   #include <sys/endian.h>$
   #else$
   #include <endian.h>$
Quoted 4 lines

A non-breaking space isn't a valid C preprocessor token.

Fixes ffbb8aa282de ("xenstore: fix build on {Net/Free}BSD")

I wonder why you didn't throw this in right away, without waiting for any acks.

Jan

#2 lore raw
In reply to Andrew Cooper
Quoted 16 lines · Andrew Cooper

This diff is easier viewed through cat -A

  diff --git a/tools/xenstore/include/xenstore_state.h b/tools/xenstore/include/xenstore_state.h$
  index 1bd443f61a..f7e4da2b2c 100644$
  --- a/tools/xenstore/include/xenstore_state.h$
  +++ b/tools/xenstore/include/xenstore_state.h$
  @@ -21,7 +21,7 @@$
   #ifndef XENSTORE_STATE_H$
   #define XENSTORE_STATE_H$
   $
  -#if defined(__FreeBSD__) ||M-BM- defined(__NetBSD__)$
  +#if defined(__FreeBSD__) || defined(__NetBSD__)$
   #include <sys/endian.h>$
   #else$
   #include <endian.h>$
Quoted 3 lines

A non-breaking space isn't a valid C preprocessor token.

Fixes ffbb8aa282de ("xenstore: fix build on {Net/Free}BSD")

Sorry. I fixed this locally but forgot to refresh the patch and ended up sending the broken version. I need to figure a way to make format-patch fail if there are uncommitted changes in the repository.

Thanks, Roger.

#3 lore raw

PATCH 1/1 xenstore: Fix all builds

In reply to Andrew Cooper

Andrew Cooper writes ("[PATCH] xenstore: Fix all builds"):

Quoted 1 line

This diff is easier viewed through cat -A

...

Quoted 1 line

A non-breaking space isn't a valid C preprocessor token.

Yikes.

Thanks!

Ian.