X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fportab%2Fportab.h;h=e30262d8e5d8914087c169150f58c2f0c07910c7;hp=1c6e3f852aaa02c5b4cbb398803ba9c114ec35b4;hb=43fb18f2f5a506c4d78967e4b6e961b7339c98dc;hpb=107bfdc821cfb179996e1186cff0ec4970ef4fbd diff --git a/src/portab/portab.h b/src/portab/portab.h index 1c6e3f85..e30262d8 100644 --- a/src/portab/portab.h +++ b/src/portab/portab.h @@ -63,7 +63,6 @@ # endif #endif - /* datatypes */ #ifndef PROTOTYPES @@ -109,15 +108,12 @@ typedef unsigned char bool; #undef GLOBAL #define GLOBAL - /* SPLint */ - #ifdef S_SPLINT_S #include "splint.h" #endif - /* target constants */ #ifndef HOST_OS @@ -132,6 +128,9 @@ typedef unsigned char bool; #define HOST_VENDOR "unknown" #endif +#ifdef __HAIKU__ +#define SINGLE_USER_OS +#endif /* configure options */ @@ -155,6 +154,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 @@ -176,8 +179,6 @@ extern int vsnprintf PARAMS(( char *str, size_t count, const char *fmt, va_list #define PACKAGE_VERSION VERSION #endif - #endif - /* -eof- */