diff --git a/src/sftp/sftp_server.c b/src/sftp/sftp_server.c
index 58d5dcdd46f664dd1365737004bb7023ba4b2390..9c5e6983c0ed0b54d1dfd0d35ee9840c9ec88d82 100644
--- a/src/sftp/sftp_server.c
+++ b/src/sftp/sftp_server.c
@@ -4,6 +4,7 @@
 #include <stdlib.h>
 #include <threadwrap.h>
 #include <str_list.h>
+#include <xpprintf.h>
 
 #include "sftp.h"