Skip to content

Commit

Permalink
Fix uintN types on Haiku after hrev57738. [skip ci]
Browse files Browse the repository at this point in the history
In Haiku <SupportDefs.h> defines int8, int16 and int32; other Haiku
headers used to include <SupportDefs.h> implicitly, but this is not the
case since commit 1834e1256:

./rpcap-protocol.h:145:9: error: unknown type name 'uint8'
./rpcap-protocol.h:146:9: error: unknown type name 'uint8'
./rpcap-protocol.h:147:9: error: unknown type name 'uint16'
./rpcap-protocol.h:148:9: error: unknown type name 'uint32'
(and so on)

In rpcap-protocol.h include the header explicitly on Haiku.
  • Loading branch information
infrastation committed Aug 1, 2024
1 parent 58c6c7f commit 27e1876
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpcap-protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ typedef unsigned char uint8; /* 8-bit unsigned integer */
typedef unsigned short uint16; /* 16-bit unsigned integer */
typedef unsigned int uint32; /* 32-bit unsigned integer */
typedef int int32; /* 32-bit signed integer */
#else
#include <os/support/SupportDefs.h>
#endif

/* Common header for all the RPCAP messages */
Expand Down

0 comments on commit 27e1876

Please sign in to comment.