freebsd-ports/cad/spice/files/patch-src_include_misc_h
Martin Wilke 00899d7b5f - Fix build with CLANG
PR:		158270
Submitted by:	Pedro Giffuni <giffunip@tutopia.com> (maintainer)
2011-06-25 07:46:56 +00:00

34 lines
690 B
Text

--- 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();
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
# ifdef HAS_RLIMIT_
-extern char *sbrk();
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/resource.h>
# endif
#endif