mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
* Define POSIX for Haiku.
* Remove superfluous BSD string function macros. git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@24529 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,23 +34,6 @@ Boston, MA 02111-1307, USA. */
|
||||
|
||||
#define ONLY_INT_FIELDS
|
||||
|
||||
/* use ANSI/SYSV style byte manipulation routines instead of BSD ones */
|
||||
|
||||
#undef bcopy
|
||||
#define bcopy(s,d,n) memmove((d),(s),(n))
|
||||
#undef bzero
|
||||
#define bzero(d,n) memset((d),0,(n))
|
||||
#undef bcmp
|
||||
#define bcmp(l,r,n) memcmp((l),(r),(n))
|
||||
#undef index
|
||||
#define index strchr
|
||||
#undef rindex
|
||||
#define rindex strrchr
|
||||
|
||||
/* Haiku is closer to USG than BSD */
|
||||
|
||||
#define USG
|
||||
|
||||
/* Define various things that the Haiku host has. */
|
||||
|
||||
#ifndef HAVE_VPRINTF
|
||||
|
||||
@@ -1166,6 +1166,7 @@ changequote(,)dnl
|
||||
i[3456789]86-*-haiku*)
|
||||
changequote([,])dnl
|
||||
xm_file=i386/xm-haiku.h
|
||||
xm_defines="USG HAVE_ATEXIT POSIX"
|
||||
tmake_file='i386/t-haiku i386/t-crtpic'
|
||||
tm_file=i386/haiku.h
|
||||
xmake_file=i386/x-haiku
|
||||
|
||||
Reference in New Issue
Block a user