]> The Tcpdump Group git mirrors - libpcap/commitdiff
Include pcap/socket.h before any OpenSSL headers.
authorGuy Harris <[email protected]>
Wed, 9 Jan 2019 19:33:05 +0000 (11:33 -0800)
committerGuy Harris <[email protected]>
Wed, 9 Jan 2019 19:33:05 +0000 (11:33 -0800)
Including WinSock headers is a game of Whac-A-Mole - if you ever get
winsock.h included before ws2def.h, you get a pile of errors, so you
have to be careful to include headers in just the right order.

See if this keeps moles from popping up.

sslutils.h

index 262b5e3355118bcc9a60ebe83e4fa630dea0fbda..a9ffde839ae8e650d0395a8ff03f235ac051b6bd 100644 (file)
@@ -34,9 +34,9 @@
 #define __SSLUTILS_H__
 
 #ifdef HAVE_OPENSSL
+#include "pcap/socket.h"  // for SOCKET
 #include <openssl/ssl.h>
 #include <openssl/err.h>
-#include "pcap/socket.h"  // for SOCKET
 
 /*
  * Utility functions