]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-util.h
In gencode.c use SWAPLONG() from pcap-util.h.
[libpcap] / pcap-util.h
index 5b40e45b962d6442c91b8f218b8ea2d5391b1847..7c4d88c8855046765735885e9b43be9dad10fcd3 100644 (file)
@@ -21,6 +21,9 @@
  * pcap-util.h - common code for various files
  */
 
+#ifndef pcap_util_h
+#define pcap_util_h
+
 /*
  * We use the "receiver-makes-right" approach to byte order;
  * because time is at a premium when we are writing the file.
@@ -49,3 +52,5 @@
 
 extern void pcapint_post_process(int linktype, int swapped,
     struct pcap_pkthdr *hdr, u_char *data);
+
+#endif // pcap_util_h