diff --git a/src/xpdev/conwrap.c b/src/xpdev/conwrap.c
index ed6414912d319b17b56484c8072024c8d803ef85..bb66f4c4839b8c6f8e3b1e6333b3c0b80e20cbb3 100644
--- a/src/xpdev/conwrap.c
+++ b/src/xpdev/conwrap.c
@@ -10,6 +10,7 @@
 #if defined(__unix__)
 
 #include <stdlib.h>
+#include <string.h>	/* memcpy */
 #include <unistd.h>
 #include <termios.h>