summaryrefslogtreecommitdiff
path: root/x11/xp/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-04 01:21:00 +0000
committerjoerg <joerg>2005-12-04 01:21:00 +0000
commit0bd63c05d65ef51d6c69cd9ae353e92a326e4a53 (patch)
tree794f73654bfc0634853f5b1b516db893fc439e9f /x11/xp/patches
parent04b24ecf5fb818b57194714e1aaccbf64776fcba (diff)
downloadpkgsrc-0bd63c05d65ef51d6c69cd9ae353e92a326e4a53.tar.gz
errno and ANSI fixes.
Diffstat (limited to 'x11/xp/patches')
-rw-r--r--x11/xp/patches/patch-ac21
-rw-r--r--x11/xp/patches/patch-ad21
2 files changed, 42 insertions, 0 deletions
diff --git a/x11/xp/patches/patch-ac b/x11/xp/patches/patch-ac
new file mode 100644
index 00000000000..cb7e80ae432
--- /dev/null
+++ b/x11/xp/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 2005/12/04 01:21:00 joerg Exp $
+
+--- xp.c.orig 2005-12-04 00:57:12.000000000 +0000
++++ xp.c
+@@ -434,7 +434,6 @@ newfile(file,data, size)
+ int size;
+
+ {
+- extern int errno;
+ extern char* uerror();
+ extern char* readfile();
+ char *mess = NULL;
+@@ -649,8 +648,6 @@ main (argc, argv)
+ filedata = readfile(argc > 1 ? argv[1] : "-", &size);
+
+ if (argc == 2 && !filedata) {
+- extern int errno;
+-
+ fprintf(stderr,"%s: %s: %s\n", argv[0], argv[1], uerror());
+ exit (1);
+ }
diff --git a/x11/xp/patches/patch-ad b/x11/xp/patches/patch-ad
new file mode 100644
index 00000000000..4bfc4f31180
--- /dev/null
+++ b/x11/xp/patches/patch-ad
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.1 2005/12/04 01:21:00 joerg Exp $
+
+--- mysystem.c.orig 2005-12-04 00:58:03.000000000 +0000
++++ mysystem.c
+@@ -1,15 +1,12 @@
+ #include <errno.h>
+ #include <signal.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <X11/Xos.h>
+ #include <X11/Intrinsic.h>
+ #include "mysystem.h"
+ #include "appres.h"
+
+-extern char *malloc();
+-extern char *getenv();
+-
+-extern int errno;
+ extern Argc;
+ extern char **Argv;
+ extern AppResources app_resources;