diff -ur polarssl-1.3.4/library/dhm.c polarssl.new/library/dhm.c
--- polarssl-1.3.4/library/dhm.c	2014-01-27 05:36:23.000000000 -0700
+++ polarssl.new/library/dhm.c	2014-03-02 14:47:02.000000000 -0700
@@ -32,6 +32,8 @@
 
 #if defined(POLARSSL_DHM_C)
 
+#include "polarssl/x509.h" // for POLARSSL_ERR_X509_FEATURE_UNAVAILABLE
+
 #include "polarssl/dhm.h"
 
 #if defined(POLARSSL_PEM_PARSE_C)
