Files
ports/databases/fastdb/files/patch-inc_stdtp.h
T
Piotr Kubaj f286c2ebbb databases/fastdb: fix build
This port does some strange stuff, like undefining BYTE_ORDER macro,
because of which it fails to build:
In file included from src/unisock.cpp:28:
/usr/include/netinet/tcp.h: In function 'uint16_t __tcp_get_flags(const tcphdr*)':
/usr/include/netinet/tcp.h:85:32: error: 'const struct tcphdr' has no member named 'th_x2'
   85 |         return (((uint16_t)th->th_x2 << 8) | th->th_flags);
      |                                ^~~~~
/usr/include/netinet/tcp.h: In function 'void __tcp_set_flags(tcphdr*, uint16_t)':
/usr/include/netinet/tcp.h:91:13: error: 'struct tcphdr' has no member named 'th_x2'
   91 |         th->th_x2 = (flags >> 8) & 0x0f;
      |             ^~~~~
2026-02-23 13:18:28 +01:00

25 lines
526 B
C

--- inc/stdtp.h.orig 2026-02-23 10:44:29 UTC
+++ inc/stdtp.h
@@ -339,21 +339,6 @@ typedef double real8;
#define MAX_NAT8 nat8(-1)
-#ifndef BIG_ENDIAN
-#define BIG_ENDIAN 4321 /* most-significant byte first (IBM, net) */
-#endif
-#ifndef LITTLE_ENDIAN
-#define LITTLE_ENDIAN 1234
-#endif
-
-#ifndef BYTE_ORDER
-#if defined(__sparc__) || defined(__m68k__)
-#define BYTE_ORDER BIG_ENDIAN
-#else
-#define BYTE_ORDER LITTLE_ENDIAN
-#endif
-#endif
-
#ifdef _WIN32
typedef HANDLE descriptor_t;
#else