* 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:
Ingo Weinhold
2008-03-23 01:17:40 +00:00
parent f40fa15314
commit db0b7f077c
2 changed files with 1 additions and 17 deletions

View File

@@ -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

View File

@@ -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