summaryrefslogtreecommitdiff
path: root/wm/fvwm1/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-12-07 15:07:23 +0000
committerjoerg <joerg@pkgsrc.org>2005-12-07 15:07:23 +0000
commitf09d5607c0e672160ba62af20a1c0b1f39893852 (patch)
tree0e06068547aff131dbb1d654849832330be2188f /wm/fvwm1/patches
parentdbd7bac1ffb661f40e4729ac9ab5d55357085a2b (diff)
downloadpkgsrc-f09d5607c0e672160ba62af20a1c0b1f39893852.tar.gz
Include errno.h, not sys/errno.h + manual declaration of errno.
Diffstat (limited to 'wm/fvwm1/patches')
-rw-r--r--wm/fvwm1/patches/patch-ae30
1 files changed, 30 insertions, 0 deletions
diff --git a/wm/fvwm1/patches/patch-ae b/wm/fvwm1/patches/patch-ae
new file mode 100644
index 00000000000..bdc4e80c625
--- /dev/null
+++ b/wm/fvwm1/patches/patch-ae
@@ -0,0 +1,30 @@
+$NetBSD: patch-ae,v 1.1 2005/12/07 15:07:23 joerg Exp $
+
+--- fvwm/module.c.orig 2005-12-06 14:27:05.000000000 +0000
++++ fvwm/module.c
+@@ -16,6 +16,7 @@
+
+ #include <stdio.h>
+ #include <unistd.h>
++#include <errno.h>
+ #include <signal.h>
+ #include <string.h>
+ #include <fcntl.h>
+@@ -596,9 +597,6 @@ void SendName(int module, unsigned long
+ free(body);
+ }
+
+-
+-
+-#include <sys/errno.h>
+ FVWM_INLINE int PositiveWrite(int module, unsigned long *ptr, int size)
+ {
+ if((pipeOn[module]<0)||(!((PipeMask[module]) & ptr[1])))
+@@ -651,7 +649,6 @@ void FlushQueue(int module)
+ char *dptr;
+ struct queue_buff_struct *d;
+ int a;
+- extern int errno;
+
+ if((pipeOn[module] <= 0)||(pipeQueue[module] == NULL))
+ return;