summaryrefslogtreecommitdiff
path: root/wm/afterstep/patches/patch-aa
blob: ed5df4529cd049e22a792c056e9ca90bc5591750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-aa,v 1.5 2005/12/06 13:14:06 joerg Exp $

--- src/afterstep/module.c.orig	2005-12-06 12:58:56.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>
@@ -380,7 +381,6 @@ LOCAL_DEBUG_OUT( "deleting buffer %p sen
 int
 FlushQueue (module_t *module)
 {
-	extern int    errno;
     int           fd;
     register struct queue_buff_struct *curr;
 
@@ -471,7 +471,6 @@ FlushAllQueues()
 
 
 
-#include <sys/errno.h>
 static inline int
 PositiveWrite (unsigned int channel, send_data_type *ptr, int size)
 {