1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/cad/cider/files/patch-ar
Steve Price cffb4d46b9 Make some modifications for (supposedly) better portability
of the "make patch"ed ${WRKSRC}:
* Use _relative_ symbolic link in the source tree.
* Don't use __FreeBSD__ other than to wrap fpsetmask() stuff.
* #define HAS_INTWAITSTATUS for BSD4.4

PR:		15972
Submitted by:	maintainer
2000-01-24 05:00:57 +00:00

42 lines
1.5 KiB
Plaintext

--- spice/common/src/include/os_bsd.h.orig Sat Jan 29 19:14:37 1994
+++ spice/common/src/include/os_bsd.h Thu Jan 6 12:33:20 2000
@@ -6,14 +6,22 @@
* BSD and derivative systems
*/
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
+
#include "os_unix.h"
+#if !(defined(BSD) && (BSD >= 199306))
#define HAS_NO_ATRIGH_DECL /* if asinh( ) is not in math.h */
-#define HAS_ATRIGH /* acosh( ), asinh( ), atanh( ) */
#define HAS_FTIME /* ftime( ), <times.h> */
+#define HAS_INDEX /* index( ) instead of strchr( ) */
+#define HAS_STRINGS /* use <strings.h> instead of <string.h> */
+#endif
+
+#define HAS_ATRIGH /* acosh( ), asinh( ), atanh( ) */
#define HAS_TERMCAP /* tgetxxx( ) */
#define HAS_VFORK /* BSD-ism, should not be necessary */
-#define HAS_INDEX /* index( ) instead of strchr( ) */
#define HAS_BCOPY /* bcopy( ), bzero( ) */
#define HAS_BSDRANDOM /* srandom( ) and random( ) */
#define HAS_BSDTTY /* <sgtty.h> */
@@ -22,4 +30,12 @@
#define HAS_BSDRLIMIT /* getrlimit( ) */
#define HAS_DUP2
#define HAS_GETWD /* getwd(buf) */
-#define HAS_STRINGS /* use <strings.h> instead of <string.h> */
+
+#if (defined(BSD) && (BSD >= 199306))
+#define HAS_BSDSOCKETS /* <net/inet.h>, socket( ), etc. */
+#define HAS_BSDTIME /* gettimeofday( ) return time */
+#define HAS_FLOAT_H /* float.h */
+#define HAS_STRCHR /* strchr( ) instead of index( ) */
+#define HAS_INTWAITSTATUS /* wait(3) takes an int *, not a union */
+#undef HAS_UNIX_SEGMENT_HACK
+#endif