$NetBSD: patch-aa,v 1.1 2006/12/15 16:43:57 joerg Exp $

--- Xtranssock.c.orig	2006-12-15 16:31:00.000000000 +0000
+++ Xtranssock.c
@@ -53,6 +53,7 @@ from the copyright holders.
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <sys/stat.h>
 #include <ctype.h>
 #ifdef XTHREADS
 #include <X11/Xthreads.h>
