mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
000cebd64d
PR: ports/107134 Submitted by: AMAKAWA Shuhei <sa264@cam.ac.uk> (maintainer)
46 lines
911 B
Plaintext
46 lines
911 B
Plaintext
--- spice/common/src/include/misc.h.orig Sun Jan 30 04:14:17 1994
|
|
+++ spice/common/src/include/misc.h Fri Dec 22 21:05:31 2006
|
|
@@ -5,6 +5,10 @@
|
|
#ifndef MISC_H
|
|
#define MISC_H
|
|
|
|
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
|
|
+#include <sys/param.h>
|
|
+#endif
|
|
+
|
|
#define BSIZE_SP 512
|
|
|
|
#ifdef HAS_EXIT1
|
|
@@ -81,12 +85,16 @@
|
|
# define srandom srand
|
|
# endif
|
|
|
|
+/*
|
|
extern char *calloc();
|
|
extern char *malloc();
|
|
+*/
|
|
extern char *realloc();
|
|
extern char *getenv();
|
|
extern int errno;
|
|
+#if !(defined(BSD) && (BSD >= 199306))
|
|
extern char *sys_errlist[];
|
|
+#endif
|
|
extern char *getenv();
|
|
extern char *getwd();
|
|
extern int rand();
|
|
@@ -109,12 +117,14 @@
|
|
# endif /* clearerr */
|
|
# endif /* HAS_CLEARERR */
|
|
|
|
+#if !(defined(BSD) && (BSD >= 199306))
|
|
# ifndef bzero
|
|
extern int bzero();
|
|
# endif
|
|
# ifndef bcopy
|
|
extern void bcopy();
|
|
# endif
|
|
+#endif
|
|
|
|
# ifndef index
|
|
# ifdef HAS_INDEX
|