aboutsummaryrefslogtreecommitdiff
path: root/pcap
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2022-06-21 14:51:46 +0100
committerDenis Ovsienko <denis@ovsienko.info>2022-06-21 15:04:27 +0100
commit19e2a37731a80d16a612c4263daa7f26b1584d54 (patch)
treef76b91793454b1a8260cbcdaa2982425fafd9084 /pcap
parent4ea6d4c34ac1a524a680135e8b95517e22727b5b (diff)
Include <sys/types.h> properly.
Follow up on earlier commits (0c21cb2, 341acb8, f4840dc, 69f105d) and try to fix the last remaining issue. In pcap/bpf.h do not try to duplicate the contents of pcap-types.h, it was a bad idea of mine because in a public header HAVE_SYS_TYPES_H is out of place. Instead of that in pcap/bpf.h trust the including file to have unsiged integer types defined (usually by means of including either pcap/pcap.h or pcap-types.h). Include pcap-types.h not from gencode.c, but from gencode.h, so the latter can include pcap/bpf.h and itself can be included early. Add a comment.
Diffstat (limited to 'pcap')
-rw-r--r--pcap/bpf.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/pcap/bpf.h b/pcap/bpf.h
index f8132582..a8eb177b 100644
--- a/pcap/bpf.h
+++ b/pcap/bpf.h
@@ -79,13 +79,6 @@
#if !defined(_NET_BPF_H_) && !defined(_NET_BPF_H_INCLUDED) && !defined(_BPF_H_) && !defined(_H_BPF) && !defined(lib_pcap_bpf_h)
#define lib_pcap_bpf_h
-/* u_char, u_short and u_int */
-#if defined(_WIN32)
- #include <winsock2.h>
-#elif defined(HAVE_SYS_TYPES_H)
- #include <sys/types.h>
-#endif
-
#include <pcap/funcattrs.h>
#include <pcap/dlt.h>