Displaying 10 results from an estimated 10 matches for "__bswap_32".
2009 Mar 18
1
Can't compile rtmpdump source
...r directory
bytes.h:45:2: #error "Undefined byte and float word order!"
bytes.cpp: In function `void WriteNumber(char*, double)':
bytes.cpp:34: warning: converting to `uint64_t' from `double'
bytes.cpp: In function `int ReadInt32LE(const char*)':
bytes.cpp:96: error: `__bswap_32' was not declared in this scope
bytes.cpp:96: warning: unused variable '__bswap_32'
bytes.cpp: In function `int EncodeInt32LE(char*, int)':
bytes.cpp:107: error: `__bswap_32' was not declared in this scope
bytes.cpp:107: warning: unused variable '__bswap_32'
gmake:...
2017 Nov 13
2
Building dovecot 2.2.33.2 is broken with uclibc-ng
...r/include/bits/waitstatus.h:72,
from /home/bernd/buildroot/br4/output/host/i586-buildroot-linux-uclibc/sysroot/usr/include/stdlib.h:41,
from ../../src/lib/lib.h:11,
from test-common.c:3:
../../src/lib/byteorder.h:104:24: error: redefinition of '__bswap_32'
static inline uint32_t bswap_32(uint32_t in)
^
In file included from /home/bernd/buildroot/br4/output/host/i586-buildroot-linux-uclibc/sysroot/usr/include/bits/byteswap.h:55:0,
from /home/bernd/buildroot/br4/output/host/i586-buildroot-linux-uclibc/sysr...
2015 Feb 12
0
Re: [PATCH 1/3] macosx: Includes/defines for byteswap operations
...; defined __MACH__
> +/* Define/include necessary items on MacOS X */
> +#include <machine/endian.h>
> +#define __BIG_ENDIAN BIG_ENDIAN
> +#define __LITTLE_ENDIAN LITTLE_ENDIAN
> +#define __BYTE_ORDER BYTE_ORDER
> +#include <libkern/OSByteOrder.h>
> +#define __bswap_32 OSSwapConstInt32
> +#endif /* __APPLE__ */
> +
> #if __BYTE_ORDER == __LITTLE_ENDIAN
> #define be32toh(x) __bswap_32 (x)
> #else
> diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-windows.c
> index 682157a..421a5b1 100644
> --- a/src/inspect-fs-windows.c
> +...
2015 Feb 12
8
[PATCH 1/3] macosx: Includes/defines for byteswap operations
...+
+#if defined __APPLE__ && defined __MACH__
+/* Define/include necessary items on MacOS X */
+#include <machine/endian.h>
+#define __BIG_ENDIAN BIG_ENDIAN
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#define __BYTE_ORDER BYTE_ORDER
+#include <libkern/OSByteOrder.h>
+#define __bswap_32 OSSwapConstInt32
+#endif /* __APPLE__ */
+
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define be32toh(x) __bswap_32 (x)
#else
diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-windows.c
index 682157a..421a5b1 100644
--- a/src/inspect-fs-windows.c
+++ b/src/inspect-fs-windows.c
@@ -36,6 +36,12...
2019 Jul 03
6
[PATCH libnbd 0/2] Two patches to make libnbd work on FreeBSD.
Two simple patches which make libnbd compile on FreeBSD.
Are we OK to copy common/include/byte-swapping.h from nbdkit? There
is no license issue that I know of. Should we put it in lib/ or
create a common/ directory? The header file is actually also needed
by the tests (follow up patch for that) so putting it in common/ might
make more sense.
Some notes if you want to compile on FreeBSD:
-
2017 Nov 13
0
Building dovecot 2.2.33.2 is broken with uclibc-ng
...tatus.h:72,
> from /home/bernd/buildroot/br4/output/host/i586-buildroot-linux-uclibc/sysroot/usr/include/stdlib.h:41,
> from ../../src/lib/lib.h:11,
> from test-common.c:3:
> ../../src/lib/byteorder.h:104:24: error: redefinition of '__bswap_32'
> static inline uint32_t bswap_32(uint32_t in)
> ^
> In file included from /home/bernd/buildroot/br4/output/host/i586-buildroot-linux-uclibc/sysroot/usr/include/bits/byteswap.h:55:0,
> from /home/bernd/buildroot/br4/output/host/i586-buildro...
2013 Oct 16
1
[Hivex] [PATCH] lib: Promote byte_conversions.h #include to hivex-internal.h
...ut the headers are
both found in Fedora 19 and Ubuntu 13.04. This patch to configure.ac
further logs that only ntohl is available for byte swaps:
@@ -153,6 +153,8 @@ AC_REPLACE_FUNCS([mmap])
dnl Functions.
AC_CHECK_FUNCS([bindtextdomain])
+AC_CHECK_FUNCS([le32toh ntohl bswap_32 __bswap_32])
+
(As an aside, it's curious that a missing byteswap.h didn't cause
hivex-internal.h to fail to build.)
(As another aside, this is an interesting example of lazy symbol
binding failing with an inline function.)
The problem is resolved by having hivex-internal.h include
byte_conversi...
2018 Aug 12
13
[PATCH nbdkit 00/10] FreeBSD support.
With these patches, a majority of tests pass. The notable
things which are still broken:
- Because FreeBSD links /home -> /usr/home, $(pwd) gives a different
result from realpath(2). Therefore some tests which implicitly
rely on (eg) a plugin which calls nbdkit_realpath internally and
then checking that path against $(pwd) fail.
- Shebangs (#!) don't seem to work the same way
2015 Oct 05
2
[PATCH] Remove multiple hacks that only apply to RHEL 5.
...heck both, and if neither is defined
- * then define be32toh for RHEL 5.
- */
-#if !defined(HAVE_BE32TOH) && !defined(be32toh)
-
#if defined __APPLE__ && defined __MACH__
/* Define/include necessary items on MacOS X */
#include <machine/endian.h>
@@ -46,13 +40,6 @@
#define __bswap_32 OSSwapConstInt32
#endif /* __APPLE__ */
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define be32toh(x) __bswap_32 (x)
-#else
-#define be32toh(x) (x)
-#endif
-#endif
-
#include "guestfs.h"
#include "guestfs-internal.h"
#include "guestfs-internal-actions.h"
diff --g...
2019 Jan 14
6
[PATCH nbdkit incomplete 0/5] Port to Windows.
This is an incomplete port to Windows. Currently the server compiles
and starts up successfully, but goes into an infinite loop when you
connect to it. Nevertheless I think the approach is ready for
feedback. This being Windows the changes go quite deep.
Rich.