mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
More FreeBSD tweaking in os_bsd.h:
. Declare HAS_INTWAITSTATUS in order to get it to compil at all (wonder how this used to work before) . While i was at it, use HAS_SYSVDIRS instead of HAS_BSDDIRS to get rid of the obsolescence warning in <sys/dir.h>.
This commit is contained in:
parent
5e922b51ea
commit
bd9c246a10
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64994
@ -150,53 +150,41 @@
|
||||
|
||||
# ifndef index
|
||||
# ifdef HAS_INDEX
|
||||
*** src/include/os_bsd.h.orig Sat Apr 24 18:09:46 1993
|
||||
--- src/include/os_bsd.h Tue Jun 2 22:28:04 1998
|
||||
***************
|
||||
*** 8,19 ****
|
||||
|
||||
#include "os_unix.h"
|
||||
|
||||
#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_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> */
|
||||
--- 8,23 ----
|
||||
|
||||
#include "os_unix.h"
|
||||
|
||||
+ #ifndef __FreeBSD__
|
||||
#define HAS_NO_ATRIGH_DECL /* if asinh( ) is not in math.h */
|
||||
#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_BCOPY /* bcopy( ), bzero( ) */
|
||||
#define HAS_BSDRANDOM /* srandom( ) and random( ) */
|
||||
#define HAS_BSDTTY /* <sgtty.h> */
|
||||
***************
|
||||
*** 22,25 ****
|
||||
#define HAS_BSDRLIMIT /* getrlimit( ) */
|
||||
#define HAS_DUP2
|
||||
#define HAS_GETWD /* getwd(buf) */
|
||||
! #define HAS_STRINGS /* use <strings.h> instead of <string.h> */
|
||||
--- 26,35 ----
|
||||
#define HAS_BSDRLIMIT /* getrlimit( ) */
|
||||
#define HAS_DUP2
|
||||
#define HAS_GETWD /* getwd(buf) */
|
||||
!
|
||||
! #ifdef __FreeBSD__
|
||||
! #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( ) */
|
||||
! #endif
|
||||
--- src/include/os_bsd.h.orig Sun Apr 25 01:09:46 1993
|
||||
+++ src/include/os_bsd.h Sun Aug 25 21:09:59 2002
|
||||
@@ -8,18 +8,31 @@
|
||||
|
||||
#include "os_unix.h"
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#define HAS_SYSVDIRS /* <sys/dirent.h> */
|
||||
+#define HAS_INTWAITSTATUS /* wait(3) takes an int *, not a union */
|
||||
+#else
|
||||
#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> */
|
||||
+#define HAS_BSDDIRS /* <sys/dir.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> */
|
||||
-#define HAS_BSDDIRS /* <sys/dir.h> */
|
||||
#define HAS_BSDRUSAGE /* getrusage( ) */
|
||||
#define HAS_BSDRLIMIT /* getrlimit( ) */
|
||||
#define HAS_DUP2
|
||||
#define HAS_GETWD /* getwd(buf) */
|
||||
-#define HAS_STRINGS /* use <strings.h> instead of <string.h> */
|
||||
+
|
||||
+#ifdef __FreeBSD__
|
||||
+#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( ) */
|
||||
+#endif
|
||||
|
Loading…
Reference in New Issue
Block a user