mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
This port generates a makefile and then passes it to "make" via stdin, which makes it different to troubleshoot. When I finally saw the file in order to figure out why several internal static libraries weren't getting built leading to some programs not getting built, I saw a generic static library target made up of variables. fmake likes it; bmake does not. I tried USES+= fmake along with some patching but I must have missed some hardcoded "make" commands because bmake got called again. This software is 20 years old so I finally gave it. It got a stay of execution by getting staged. If somebody wants to study a target that bmake just doesn't get, this is a good place to start.
45 lines
979 B
C
45 lines
979 B
C
--- spice3f5/common/src/include/misc.h.orig 1994-01-29 19:14:17 UTC
|
|
+++ spice3f5/common/src/include/misc.h
|
|
@@ -5,6 +5,10 @@ Copyright 1990 Regents of the University
|
|
#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 @@ extern void srandom();
|
|
# 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 @@ extern void clearerr();
|
|
# 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
|