X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fportab%2Fportab.h;h=a968a3b9bd924fbbe6e04eee47d1dc5f4f925e21;hb=d38747d951a8a5007e97693cade3551e11e50569;hp=1c6e3f852aaa02c5b4cbb398803ba9c114ec35b4;hpb=107bfdc821cfb179996e1186cff0ec4970ef4fbd;p=ngircd-alex.git diff --git a/src/portab/portab.h b/src/portab/portab.h index 1c6e3f85..a968a3b9 100644 --- a/src/portab/portab.h +++ b/src/portab/portab.h @@ -112,7 +112,6 @@ typedef unsigned char bool; /* SPLint */ - #ifdef S_SPLINT_S #include "splint.h" #endif @@ -132,6 +131,9 @@ typedef unsigned char bool; #define HOST_VENDOR "unknown" #endif +#ifdef __HAIKU__ +#define SINGLE_USER_OS +#endif /* configure options */ @@ -155,6 +157,10 @@ extern size_t strlcpy PARAMS(( char *dst, const char *src, size_t size )); extern char * strdup PARAMS(( const char *s )); #endif +#ifndef HAVE_STRNDUP +extern char * strndup PARAMS((const char *s, size_t maxlen)); +#endif + #ifndef HAVE_STRTOK_R extern char * strtok_r PARAMS((char *str, const char *delim, char **saveptr)); #endif