git: 5cb5a21e3d25 - main - net-mgmt/driftnet: fix build on big-endian architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 16 Jul 2023 00:05:25 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=5cb5a21e3d2535b85a413b77ee1d94cf7eec183b commit 5cb5a21e3d2535b85a413b77ee1d94cf7eec183b Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-07-15 23:51:36 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-07-16 00:05:23 +0000 net-mgmt/driftnet: fix build on big-endian architectures In file included from display.c:32: ./img.h:72:5: error: "no endianness defined" ^ --- net-mgmt/driftnet/files/patch-src_display_img.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/net-mgmt/driftnet/files/patch-src_display_img.h b/net-mgmt/driftnet/files/patch-src_display_img.h new file mode 100644 index 000000000000..272fc42f0a6e --- /dev/null +++ b/net-mgmt/driftnet/files/patch-src_display_img.h @@ -0,0 +1,10 @@ +--- src/display/img.h.orig 2023-07-15 23:49:00 UTC ++++ src/display/img.h +@@ -69,6 +69,7 @@ typedef uint32_t pel; + # define GETB(p) ((chan)(((p) & (pel)0xff000000) >> 24)) + # define GETA(p) ((chan)(((p) & (pel)0x000000ff) )) + #endif ++#else + # error "no endianness defined" + #endif +