]> The Tcpdump Group git mirrors - tcpdump/commit
pflog: Include <limits.h> for UINT_MAX
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 9 Sep 2024 08:39:21 +0000 (10:39 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 9 Sep 2024 08:47:23 +0000 (10:47 +0200)
commita271c5ecb9c9ea1cbecff1569eb647cfb16dc187
treef494215fd91c005739960462ba1345b1e699c2be
parenta1b460b1bb164543282efab1aeb7bd022b2edb4f
pflog: Include <limits.h> for UINT_MAX

This change avoids an error with illumos.

The error was:

print-pflog.c: In function 'pflog_print':
print-pflog.c:254:37: error: 'UINT_MAX' undeclared (first use in this
  function)
  254 |         if (GET_BE_U_4(hdr->uid) != UINT_MAX)
      |                                     ^~~~~~~~
print-pflog.c:32:1: note: 'UINT_MAX' is defined in header '<limits.h>';
  did you forget to '#include <limits.h>'?
print-pflog.c