search for: osswapbigtohostint64

Displaying 2 results from an estimated 2 matches for "osswapbigtohostint64".

2015 Feb 12
0
Re: [PATCH 1/3] macosx: Includes/defines for byteswap operations
...ournal.c > index 1070067..c563b7f 100644 > --- a/src/journal.c > +++ b/src/journal.c > @@ -35,6 +35,11 @@ > #include <sys/endian.h> > #endif > > +#if defined __APPLE__ && defined __MACH__ > +#include <libkern/OSByteOrder.h> > +#define be64toh(x) OSSwapBigToHostInt64(x) > +#endif > + > #include "full-read.h" > > #include "guestfs.h" This code clearly need some refactoring, before adding more copy/pasted parts to it. I'd say to do this in two steps: a) moving the definitions of the current be32toh/etc to a new src/...
2015 Feb 12
8
[PATCH 1/3] macosx: Includes/defines for byteswap operations
...c-ctype.h" diff --git a/src/journal.c b/src/journal.c index 1070067..c563b7f 100644 --- a/src/journal.c +++ b/src/journal.c @@ -35,6 +35,11 @@ #include <sys/endian.h> #endif +#if defined __APPLE__ && defined __MACH__ +#include <libkern/OSByteOrder.h> +#define be64toh(x) OSSwapBigToHostInt64(x) +#endif + #include "full-read.h" #include "guestfs.h" -- 1.9.3