$NetBSD: patch-ae,v 1.2 2005/11/03 23:09:24 rillig Exp $

--- unix/tkUnixPort.h.orig	2005-07-30 21:02:48.000000000 +0000
+++ unix/tkUnixPort.h
@@ -119,12 +119,7 @@
 #endif
 #define MASK_SIZE howmany(FD_SETSIZE, NFDBITS)
 
-/*
- * Not all systems declare the errno variable in errno.h. so this
- * file does it explicitly.
- */
-
-extern int errno;
+#include <errno.h>
 
 /*
  * Define "NBBY" (number of bits per byte) if it's not already defined.
