diff --git a/cad/spice/files/patch-src_include_misc_h b/cad/spice/files/patch-src_include_misc_h index 5d1e69a17dc7..89552d7649af 100644 --- a/cad/spice/files/patch-src_include_misc_h +++ b/cad/spice/files/patch-src_include_misc_h @@ -1,34 +1,43 @@ ---- 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 @@ +--- src/include/misc.h.orig 1993-04-25 21:37:48 UTC ++++ src/include/misc.h +@@ -86,9 +86,11 @@ extern int errno; extern char *realloc(); extern char *getenv(); extern int errno; +#ifndef __FreeBSD__ extern char *sys_errlist[]; extern char *getenv(); extern char *getwd(); +#endif extern int rand(); extern int srand(); extern int atoi(); -@@ -100,7 +102,7 @@ +@@ -100,7 +102,7 @@ extern void exit(); # endif # ifdef HAS_GETCWD -extern char *getcwd( ); +#include # endif # ifdef HAS_CLEARERR -@@ -154,7 +156,9 @@ +@@ -145,16 +147,15 @@ extern void perror(); + #endif + + #ifdef HAS_TIME_ +-# ifdef HAS_BSDTIME +-extern char *timezone(); +-# endif + extern char *asctime(); + extern struct tm *localtime(); + #endif #ifndef HAS_MEMAVL # ifdef HAS_RLIMIT_ -extern char *sbrk(); +#include +#include +#include # endif #endif