--- libdjvu/GSmartPointer.h~	2011-03-29 12:35:05.000000000 +0400
+++ libdjvu/GSmartPointer.h	2011-03-29 12:35:25.000000000 +0400
@@ -58,6 +58,9 @@
 
 #ifndef _GSMARTPOINTER_H_
 #define _GSMARTPOINTER_H_
+
+#include <cstring>
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
