aboutsummaryrefslogtreecommitdiffstats
path: root/cad/spice/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2011-06-25 15:46:56 +0800
committermiwi <miwi@FreeBSD.org>2011-06-25 15:46:56 +0800
commita7807cea676b3d62d865236b14f4991f7dd75f8c (patch)
tree656bf3d91cebb9f59d03f8b678a4c1b44badfedf /cad/spice/files
parentdd85a0ee269a784f10ebc64246599bbe302ff687 (diff)
downloadfreebsd-ports-gnome-a7807cea676b3d62d865236b14f4991f7dd75f8c.tar.gz
freebsd-ports-gnome-a7807cea676b3d62d865236b14f4991f7dd75f8c.tar.zst
freebsd-ports-gnome-a7807cea676b3d62d865236b14f4991f7dd75f8c.zip
- Fix build with CLANG
PR: 158270 Submitted by: Pedro Giffuni <giffunip@tutopia.com> (maintainer)
Diffstat (limited to 'cad/spice/files')
-rw-r--r--cad/spice/files/patch-src-lib-mfb-mfbcaps.c14
-rw-r--r--cad/spice/files/patch-src_bin_help.c11
-rw-r--r--cad/spice/files/patch-src_bin_main.c11
-rw-r--r--cad/spice/files/patch-src_bin_procmod.c11
-rw-r--r--cad/spice/files/patch-src_bin_sconvert_c13
-rw-r--r--cad/spice/files/patch-src_include_fteext.h11
-rw-r--r--cad/spice/files/patch-src_include_misc_h18
-rw-r--r--cad/spice/files/patch-src_lib_cp_cshpar_c10
-rw-r--r--cad/spice/files/patch-src_lib_cp_unixcom.c10
-rw-r--r--cad/spice/files/patch-src_lib_mfb_mfbcaps.c22
10 files changed, 101 insertions, 30 deletions
diff --git a/cad/spice/files/patch-src-lib-mfb-mfbcaps.c b/cad/spice/files/patch-src-lib-mfb-mfbcaps.c
deleted file mode 100644
index cfa187458d4b..000000000000
--- a/cad/spice/files/patch-src-lib-mfb-mfbcaps.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/lib/mfb/mfbcaps.c.orig Sat Oct 7 15:56:38 2006
-+++ src/lib/mfb/mfbcaps.c Sat Oct 7 15:57:51 2006
-@@ -43,9 +43,9 @@
-
- FILE *POpen();
- char *strcpy();
--char *MFBSkip();
-+static char *MFBSkip();
- char *MFBGetStr();
--char *MFBCapDecod();
-+static char *MFBCapDecod();
- int MFBGetNum();
- int MFBGetFlag();
- int MFBGetEnt();
diff --git a/cad/spice/files/patch-src_bin_help.c b/cad/spice/files/patch-src_bin_help.c
new file mode 100644
index 000000000000..19921819a7db
--- /dev/null
+++ b/cad/spice/files/patch-src_bin_help.c
@@ -0,0 +1,11 @@
+--- src/bin/help.c.orig 2011-06-24 19:12:52.000000000 +0000
++++ src/bin/help.c 2011-06-24 19:13:19.000000000 +0000
+@@ -46,7 +46,7 @@
+ char *hlp_filelist[] = { "spice", 0 };
+
+ /* ARGSUSED */
+-void
++int
+ main(ac, av)
+ int ac;
+ char **av;
diff --git a/cad/spice/files/patch-src_bin_main.c b/cad/spice/files/patch-src_bin_main.c
new file mode 100644
index 000000000000..a978271cb889
--- /dev/null
+++ b/cad/spice/files/patch-src_bin_main.c
@@ -0,0 +1,11 @@
+--- src/bin/main.c.orig 2011-06-24 16:53:54.000000000 +0000
++++ src/bin/main.c 2011-06-24 16:54:24.000000000 +0000
+@@ -183,7 +183,7 @@
+
+ char *hlp_filelist[] = { "spice", 0 };
+
+-void
++int
+ main(ac, av)
+ char **av;
+ {
diff --git a/cad/spice/files/patch-src_bin_procmod.c b/cad/spice/files/patch-src_bin_procmod.c
new file mode 100644
index 000000000000..3ee73f74743e
--- /dev/null
+++ b/cad/spice/files/patch-src_bin_procmod.c
@@ -0,0 +1,11 @@
+--- src/bin/proc2mod.c.orig 2011-06-24 16:07:41.000000000 +0000
++++ src/bin/proc2mod.c 2011-06-24 16:08:43.000000000 +0000
+@@ -51,7 +51,7 @@
+ char *dataline;
+
+
+-void
++int
+ main() {
+ char *typeline;
+ char *prname;
diff --git a/cad/spice/files/patch-src_bin_sconvert_c b/cad/spice/files/patch-src_bin_sconvert_c
index 97f904a0cd63..3864a1f15763 100644
--- a/cad/spice/files/patch-src_bin_sconvert_c
+++ b/cad/spice/files/patch-src_bin_sconvert_c
@@ -1,5 +1,14 @@
---- src/bin/sconvert.c.orig Mon Sep 14 21:30:41 1992
-+++ src/bin/sconvert.c Thu Jul 17 00:47:50 2003
+--- src/bin/sconvert.c.orig 1992-09-15 01:30:41.000000000 +0000
++++ src/bin/sconvert.c 2011-06-24 19:05:59.000000000 +0000
+@@ -36,7 +36,7 @@
+ static struct plot *oldread();
+ static char *fixdate();
+
+-void
++int
+ main(ac, av)
+ char **av;
+ {
@@ -80,19 +80,19 @@
case 1: printf("Input file: ");
diff --git a/cad/spice/files/patch-src_include_fteext.h b/cad/spice/files/patch-src_include_fteext.h
new file mode 100644
index 000000000000..8fcbc01847e1
--- /dev/null
+++ b/cad/spice/files/patch-src_include_fteext.h
@@ -0,0 +1,11 @@
+--- src/include/fteext.h.orig 2011-06-24 16:19:49.000000000 +0000
++++ src/include/fteext.h 2011-06-24 16:21:21.000000000 +0000
+@@ -419,7 +419,7 @@
+ extern SIGNAL_TYPE sigbus();
+ extern SIGNAL_TYPE sigsegv();
+ extern SIGNAL_TYPE sig_sys();
+-extern void main();
++extern int main();
+
+ /* spiceif.c & nutmegif.c */
+
diff --git a/cad/spice/files/patch-src_include_misc_h b/cad/spice/files/patch-src_include_misc_h
index 5f97d18a30a6..5d1e69a17dc7 100644
--- a/cad/spice/files/patch-src_include_misc_h
+++ b/cad/spice/files/patch-src_include_misc_h
@@ -1,16 +1,26 @@
---- src/include/misc.h.orig Sun Apr 25 16:37:48 1993
-+++ src/include/misc.h Mon Apr 3 23:04:51 2006
-@@ -86,8 +86,10 @@
+--- src/include/misc.h.orig 1993-04-25 21:37:48.000000000 +0000
++++ src/include/misc.h 2011-06-24 16:37:44.000000000 +0000
+@@ -86,9 +86,11 @@
extern char *realloc();
extern char *getenv();
extern int errno;
+#ifndef __FreeBSD__
extern char *sys_errlist[];
extern char *getenv();
-+#endif
extern char *getwd();
++#endif
extern int rand();
extern int srand();
+ extern int atoi();
+@@ -100,7 +102,7 @@
+ # endif
+
+ # ifdef HAS_GETCWD
+-extern char *getcwd( );
++#include <unistd.h>
+ # endif
+
+ # ifdef HAS_CLEARERR
@@ -154,7 +156,9 @@
#ifndef HAS_MEMAVL
diff --git a/cad/spice/files/patch-src_lib_cp_cshpar_c b/cad/spice/files/patch-src_lib_cp_cshpar_c
deleted file mode 100644
index 14b8a93d4d65..000000000000
--- a/cad/spice/files/patch-src_lib_cp_cshpar_c
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/lib/cp/cshpar.c.orig Mon Nov 12 02:26:08 2007
-+++ src/lib/cp/cshpar.c Mon Nov 12 02:30:46 2007
-@@ -6,6 +6,7 @@
- /*
- * The main entry point for cshpar.
- */
-+#include <unistd.h>
-
- #include "spice.h"
- #include "misc.h"
diff --git a/cad/spice/files/patch-src_lib_cp_unixcom.c b/cad/spice/files/patch-src_lib_cp_unixcom.c
new file mode 100644
index 000000000000..10df4369dfbd
--- /dev/null
+++ b/cad/spice/files/patch-src_lib_cp_unixcom.c
@@ -0,0 +1,10 @@
+--- src/lib/cp/unixcom.c.orig 2011-06-24 16:24:35.000000000 +0000
++++ src/lib/cp/unixcom.c 2011-06-24 16:30:47.000000000 +0000
+@@ -6,6 +6,7 @@
+ /*
+ * Routines to do execution of unix commands.
+ */
++#include <unistd.h>
+
+ #include "spice.h"
+ #include "cpdefs.h"
diff --git a/cad/spice/files/patch-src_lib_mfb_mfbcaps.c b/cad/spice/files/patch-src_lib_mfb_mfbcaps.c
new file mode 100644
index 000000000000..3b7f20da26ae
--- /dev/null
+++ b/cad/spice/files/patch-src_lib_mfb_mfbcaps.c
@@ -0,0 +1,22 @@
+--- src/lib/mfb/mfbcaps.c.orig 1991-04-01 22:32:50.000000000 +0000
++++ src/lib/mfb/mfbcaps.c 2011-06-24 19:53:27.000000000 +0000
+@@ -26,6 +26,7 @@
+ #include "spice.h"
+ #include "mfb.h"
+ #include <ctype.h>
++#include <string.h>
+ #include "suffix.h"
+
+
+@@ -43,9 +44,9 @@
+
+ FILE *POpen();
+ char *strcpy();
+-char *MFBSkip();
++static char *MFBSkip();
+ char *MFBGetStr();
+-char *MFBCapDecod();
++static char *MFBCapDecod();
+ int MFBGetNum();
+ int MFBGetFlag();
+ int MFBGetEnt();