]> The Tcpdump Group git mirrors - tcpdump/commitdiff
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)
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

index 7cf2c37c629a42c954c9cec82d3cb8457541e68b..3d72716d0d677327618505d46f988ae740ae1438 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <config.h>
 
+#include <limits.h>
+
 #include "netdissect-stdinc.h"
 
 #define ND_LONGJMP_FROM_TCHECK