Browse Source

fix for windows compile

David Rose 22 years ago
parent
commit
1392673881
1 changed files with 6 additions and 0 deletions
  1. 6 0
      panda/src/downloader/httpChannel.cxx

+ 6 - 0
panda/src/downloader/httpChannel.cxx

@@ -26,10 +26,16 @@
 #include "ramfile.h"
 #include "ramfile.h"
 
 
 #ifdef HAVE_SSL
 #ifdef HAVE_SSL
+#include <openssl/x509.h>
 #ifdef REPORT_OPENSSL_ERRORS
 #ifdef REPORT_OPENSSL_ERRORS
 #include <openssl/err.h>
 #include <openssl/err.h>
 #endif
 #endif
 
 
+#ifdef WIN32_VC
+  #include <windows.h>  // for select()
+  #undef X509_NAME
+#endif  // WIN32_VC
+
 TypeHandle HTTPChannel::_type_handle;
 TypeHandle HTTPChannel::_type_handle;
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////