diff --git a/src/xpdev/filewrap.c b/src/xpdev/filewrap.c
index 12d8b1321724b914c4a47511971b704ec6bbd959..be6eef10ecadf3c102144db06196adb6b8044cff 100644
--- a/src/xpdev/filewrap.c
+++ b/src/xpdev/filewrap.c
@@ -38,6 +38,7 @@
 /* OS-specific */
 #if defined(__unix__)
 
+#include <stdarg.h>		/* va_list */
 #include <string.h>     /* strlen() */
 #include <unistd.h>     /* getpid() */
 #include <fcntl.h>      /* fcntl() file/record locking */