summaryrefslogtreecommitdiff
path: root/cad/spice/files/patch-src_include_misc_h
blob: 5d1e69a17dc70693879cc0017496a36a7447744f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- 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