--- a/lib/imclient.c
+++ b/lib/imclient.c
@@ -55,7 +55,7 @@
 #ifdef HAVE_STDARG_H
 #include <stdarg.h>
 #else
-#include <varargs.h>
+#include <stdarg.h>
 #endif
 #include <sys/types.h>
 #include <sys/socket.h>
