]> The Tcpdump Group git mirrors - libpcap/commitdiff
Not all systems have <stdint.h>
authorGuy Harris <[email protected]>
Thu, 6 Nov 2014 06:19:52 +0000 (22:19 -0800)
committerGuy Harris <[email protected]>
Thu, 6 Nov 2014 06:19:52 +0000 (22:19 -0800)
Don't include it, and use u_intXX_t, which we arrange to be defined,
rather than uintXX_t.

pcap/bpf.h

index 5084d065e4c7f6aaf228fbf0814f94290577c529..27d46300225a2d83d94cdcb3683b598c51bdfa93 100644 (file)
@@ -68,9 +68,6 @@
  *
  * This also provides our own multiple-include protection.
  */
-
-#include <stdint.h>
-
 #if !defined(_NET_BPF_H_) && !defined(_BPF_H_) && !defined(_H_BPF) && !defined(lib_pcap_bpf_h)
 #define lib_pcap_bpf_h
 
@@ -1478,8 +1475,8 @@ struct bpf_insn {
  * run it in userland).  It contains VLAN tag information.
  */
 struct bpf_aux_data {
-        uint16_t vlan_tag_present;
-        uint16_t vlan_tag;
+        u_int16_t vlan_tag_present;
+        u_int16_t vlan_tag;
 };
 
 /*