xenstore: Fix all builds
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.
---
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
@@ -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
Quoted 16 lines · Andrew Cooper
This diff is easier viewed through
cat -Adiff --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")Signed-off-by Andrew Cooper <[email protected]>
I wonder why you didn't throw this in right away, without waiting for any acks.
Jan
Quoted 16 lines · Andrew Cooper
This diff is easier viewed through
cat -Adiff --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.
PATCH 1/1 xenstore: Fix all builds
In reply to Andrew CooperAndrew 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.