$NetBSD: patch-aa,v 1.7 2021/07/11 12:13:17 bsiegert Exp $

Don't declare own errno.

--- src/afterstep/module.c.orig	2013-05-01 13:34:11.000000000 +0000
+++ src/afterstep/module.c
@@ -33,6 +33,7 @@
 
 #include <signal.h>
 #include <stdarg.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/file.h>
@@ -415,7 +416,6 @@ static void DeleteQueueBuff (module_t * 
 
 int FlushQueue (module_t * module)
 {
-	extern int errno;
 	int fd;
 	register struct queue_buff_struct *curr;
 LOCAL_DEBUG_OUT ("module \"%s\", active= %d, out_queue = %p", module->name, module->active, module->output_queue);
@@ -500,7 +500,6 @@ void FlushAllQueues ()
 
 
 
-#include <sys/errno.h>
 static inline int
 PositiveWrite (unsigned int channel, send_data_type * ptr, int size)
 {
