Skip to content

Commit a271c5e

Browse files
committed
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>'?
1 parent a1b460b commit a271c5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

print-pflog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
#include <config.h>
2525

26+
#include <limits.h>
27+
2628
#include "netdissect-stdinc.h"
2729

2830
#define ND_LONGJMP_FROM_TCHECK

0 commit comments

Comments
 (0)