--- lib/RK/context.c.orig	2003-09-17 18:50:52.000000000 +1000
+++ lib/RK/context.c	2022-03-11 08:12:07.000000000 +1100
@@ -30,6 +30,7 @@ static char rcsid[]="$Id: context.c,v 1.
 #include <canna/jrkanji.h>
 
 #include <errno.h>
+#include <sys/stat.h>
 
 static unsigned long now_context = 0L;
 
