summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-11 00:22:35 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-11 00:22:35 +0100
commit550e5859cda41b9dfd3a84ac83fe3b6491597f5b (patch)
treed3c846ed1c0d130077c9e65c97896bf0b65ecb04
parent6f4d2af753813849c5cf0e9e568edad667b8b77a (diff)
Some speculative win32 build fixes.
-rw-r--r--src/certificates.h3
-rw-r--r--src/crypt_chain.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/certificates.h b/src/certificates.h
index 42ae8d27..06baa547 100644
--- a/src/certificates.h
+++ b/src/certificates.h
@@ -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;
diff --git a/src/crypt_chain.cc b/src/crypt_chain.cc
index 41c7624b..ee1b2486 100644
--- a/src/crypt_chain.cc
+++ b/src/crypt_chain.cc
@@ -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());