Some speculative win32 build fixes.
authorCarl Hetherington <cth@carlh.net>
Wed, 10 Jul 2013 23:22:35 +0000 (00:22 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 10 Jul 2013 23:22:35 +0000 (00:22 +0100)
src/certificates.h
src/crypt_chain.cc

index 42ae8d27b3e8424f5b5d3c0f8d4092e66946d200..06baa547fb649b798b1c2796a683c3d8cc63db8a 100644 (file)
@@ -24,6 +24,9 @@
 #include <list>
 #include <boost/noncopyable.hpp>
 #include <boost/shared_ptr.hpp>
+#ifdef LIBDCP_WINDOWS
+#include "wincrypt.h"
+#endif
 #include <openssl/x509.h>
 
 class certificates;
index 41c7624bd5c12af9ac012ac8fbbcfe8aa7fddcd9..ee1b2486ac1312288b01ad4422f58d276d36c836 100644 (file)
@@ -33,7 +33,7 @@ using std::cout;
 static void command (char const * c)
 {
        int const r = system (c);
-       if (WEXITSTATUS (r)) {
+       if (r) {
                stringstream s;
                s << "error in " << c << "\n";
                throw libdcp::MiscError (s.str());