--- a/libupnpp/log.cxx
+++ b/libupnpp/log.cxx
@@ -14,6 +14,8 @@
  *	 Free Software Foundation, Inc.,
  *	 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
+#include "config.h"
+
 #include <errno.h>
 
 using namespace std;