]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add incomplete structure declarations before typedefs using them.
authorGuy Harris <[email protected]>
Sun, 5 Jun 2016 17:54:38 +0000 (10:54 -0700)
committerGuy Harris <[email protected]>
Sun, 5 Jun 2016 17:54:38 +0000 (10:54 -0700)
Perhaps some compilers will complain if you do

typedef struct XXX XXX_t;

before any declaration of "struct XXX", so put incomplete declarations
of those structures before the typedefs.

pcap/pcap.h

index b5d50b8e5785a5264be413f5129901725d289ea6..b368abada57e61f8bf91a5aac1d5db90bd9e6469 100644 (file)
@@ -78,6 +78,11 @@ typedef      int bpf_int32;
 typedef        u_int bpf_u_int32;
 #endif
 
+struct pcap;
+struct pcap_dumper;
+struct pcap_if;
+struct pcap_addr;
+
 typedef struct pcap pcap_t;
 typedef struct pcap_dumper pcap_dumper_t;
 typedef struct pcap_if pcap_if_t;