summaryrefslogtreecommitdiff
path: root/cad/pcb/patches
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2004-01-12 11:19:58 +0000
committerseb <seb@pkgsrc.org>2004-01-12 11:19:58 +0000
commit4959d3b300783575ed1a30abe75d42d95f06bb84 (patch)
tree6d997fcb1e136176753e87316e114bc224a7cdb2 /cad/pcb/patches
parentf2b9ff1eda0469d30527dd5ca2016f6009438ed9 (diff)
downloadpkgsrc-4959d3b300783575ed1a30abe75d42d95f06bb84.tar.gz
Fix build on NetBSD current.
Diffstat (limited to 'cad/pcb/patches')
-rw-r--r--cad/pcb/patches/patch-as34
-rw-r--r--cad/pcb/patches/patch-at62
-rw-r--r--cad/pcb/patches/patch-au20
3 files changed, 116 insertions, 0 deletions
diff --git a/cad/pcb/patches/patch-as b/cad/pcb/patches/patch-as
new file mode 100644
index 00000000000..9470f9cf53e
--- /dev/null
+++ b/cad/pcb/patches/patch-as
@@ -0,0 +1,34 @@
+$NetBSD: patch-as,v 1.1 2004/01/12 11:19:58 seb Exp $
+
+--- src/dev_rs274x.c.orig 1998-05-13 10:29:43.000000000 +0000
++++ src/dev_rs274x.c
+@@ -51,7 +51,7 @@
+ #include <sys/types.h>
+ #include <errno.h>
+ #include <unistd.h>
+-#include <varargs.h>
++#include <stdarg.h>
+
+ #include "global.h"
+
+@@ -218,10 +218,7 @@
+ /*----------------------------------------------------------------------------*/
+ /* Error Logging Routines */
+ /*----------------------------------------------------------------------------*/
+-static void logError(fp, format, va_alist)
+- FILE *fp;
+- char *format;
+- va_dcl
++static void logError(FILE* fp, char * format, ...)
+ {
+ va_list args;
+ char s[1024];
+@@ -229,7 +226,7 @@ static void logError(fp, format, va_alis
+ /* FIXME: Is it legitimate to use Message() from within a
+ driver? */
+
+- va_start(args);
++ va_start(args, format);
+ vsprintf(s, format, args);
+ fputs(s, fp);
+ /*
diff --git a/cad/pcb/patches/patch-at b/cad/pcb/patches/patch-at
new file mode 100644
index 00000000000..b35cef4b4bd
--- /dev/null
+++ b/cad/pcb/patches/patch-at
@@ -0,0 +1,62 @@
+$NetBSD: patch-at,v 1.1 2004/01/12 11:19:58 seb Exp $
+
+--- src/error.c.orig 1998-05-13 10:29:45.000000000 +0000
++++ src/error.c
+@@ -34,7 +34,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <errno.h>
+-#include <varargs.h>
++#include <stdarg.h>
+ #include <signal.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+@@ -51,8 +51,10 @@
+ /* ----------------------------------------------------------------------
+ * some external identifiers
+ */
++#ifndef __NetBSD__
+ extern int errno, /* system error code */
+ sys_nerr; /* number of messages available from array */
++#endif
+
+ /* the list is already defined for some OS */
+ #if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__linux__)
+@@ -68,15 +70,13 @@
+ /* ---------------------------------------------------------------------------
+ * output of message in a dialog window or log window
+ */
+-void Message(Format, va_alist)
+-char *Format;
+-va_dcl
++void Message(char *Format, ...)
+ {
+ va_list args;
+ char s[1024];
+ XEvent event;
+
+- va_start(args);
++ va_start(args, Format);
+ vsprintf(s, Format, args);
+ va_end(args);
+
+@@ -156,9 +156,7 @@
+ /* ---------------------------------------------------------------------------
+ * output of fatal error message
+ */
+-void MyFatal(Format, va_alist)
+-char *Format;
+-va_dcl
++void MyFatal( char *Format, ...)
+ {
+ va_list args;
+
+@@ -166,7 +164,7 @@
+ RestoreStderr();
+ EmergencySave();
+
+- va_start(args);
++ va_start(args, Format);
+ fprintf(stderr, "%s (%i): fatal, ", Progname, (int) getpid());
+ vfprintf(stderr, Format, args);
+ fflush(stderr);
diff --git a/cad/pcb/patches/patch-au b/cad/pcb/patches/patch-au
new file mode 100644
index 00000000000..ae87bd6ec31
--- /dev/null
+++ b/cad/pcb/patches/patch-au
@@ -0,0 +1,20 @@
+$NetBSD: patch-au,v 1.1 2004/01/12 11:19:58 seb Exp $
+
+--- src/error.h.orig 1998-05-13 10:29:45.000000000 +0000
++++ src/error.h
+@@ -37,13 +37,13 @@
+ #define STATUS_BREAK 1
+ #define STATUS_ERROR -1
+
+-void Message();
++void Message(char *, ...);
+ void OpenErrorMessage(char *);
+ void PopenErrorMessage(char *);
+ void OpendirErrorMessage(char *);
+ void ChdirErrorMessage(char *);
+ void RestoreStderr(void);
+-void MyFatal();
++void MyFatal(char *, ...);
+ void CatchSignal(int);
+ void X11ErrorHandler(String);
+ void InitErrorLog(void);