summaryrefslogtreecommitdiff
path: root/cad/spice/files/patch-src_include_misc_h
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2011-06-25 07:46:56 +0000
committerMartin Wilke <miwi@FreeBSD.org>2011-06-25 07:46:56 +0000
commit00899d7b5fcd9eb2848bd5114f6ac1f47e49c8d8 (patch)
treee041b6d3466b16492ed798d385cdd8020b696bf7 /cad/spice/files/patch-src_include_misc_h
parent- Fix build with CLANG (diff)
- Fix build with CLANG
PR: 158270 Submitted by: Pedro Giffuni <giffunip@tutopia.com> (maintainer)
Diffstat (limited to 'cad/spice/files/patch-src_include_misc_h')
-rw-r--r--cad/spice/files/patch-src_include_misc_h18
1 files changed, 14 insertions, 4 deletions
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