do not prototype capture_eth() unless capture.h has being included
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 18 Feb 2005 20:19:52 +0000 (20:19 +0000)
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 18 Feb 2005 20:19:52 +0000 (20:19 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13425 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-eth.h

index df190750d93a844912d8be81bf21b2f460dab319..be98c9cef72b71aeeac2119f06a87833e10cfcad 100644 (file)
@@ -30,7 +30,9 @@ typedef struct _eth_hdr {
        guint16 type;
 } eth_hdr;
 
+#ifdef __CAPTURE_H__
 void capture_eth(const guchar *, int, int, packet_counts *);
+#endif
 
 void add_ethernet_trailer(proto_tree *fh_tree, int trailer_id, tvbuff_t *tvb,
                          tvbuff_t *trailer_tvb, int fcs_len);