X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fportab%2Fportab.h;h=b4ccf1fc7f95e168e78e1b668e876b97b542c88e;hp=529d46a078f398ccbd120af47340dc485802d17d;hb=9ca1f6a98802c58f1e33d18e93d1c56d133b9aea;hpb=e13cb291dd5da76b77da97eb2dd82ae5d955286a diff --git a/src/portab/portab.h b/src/portab/portab.h index 529d46a0..b4ccf1fc 100644 --- a/src/portab/portab.h +++ b/src/portab/portab.h @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) + * Copyright (c)2001-2003 by Alexander Barton (alex@barton.de) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -8,7 +8,7 @@ * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: portab.h,v 1.10 2002/12/26 13:26:34 alex Exp $ + * $Id: portab.h,v 1.13 2003/03/17 00:53:52 alex Exp $ * * Portability functions and declarations (header for libngbportab). */ @@ -20,6 +20,10 @@ #include "config.h" +#ifdef HAVE_SYS_TYPES_H +#include +#endif + /* compiler features */ @@ -125,24 +129,20 @@ typedef UINT8 BOOLEAN; #define socklen_t int /* u.a. fuer Mac OS X */ #endif -#if OS_UNIX_AUX -#define _POSIX_SOURCE /* muss unter A/UX definiert sein */ -#endif - #ifndef HAVE_SNPRINTF -EXTERN INT snprintf( CHAR *str, size_t count, CONST CHAR *fmt, ... ); +EXTERN INT snprintf PARAMS(( CHAR *str, size_t count, CONST CHAR *fmt, ... )); #endif #ifndef HAVE_STRLCAT -EXTERN size_t strlcat( CHAR *dst, CONST CHAR *src, size_t size ); +EXTERN size_t strlcat PARAMS(( CHAR *dst, CONST CHAR *src, size_t size )); #endif #ifndef HAVE_STRLCPY -EXTERN size_t strlcpy( CHAR *dst, CONST CHAR *src, size_t size ); +EXTERN size_t strlcpy PARAMS(( CHAR *dst, CONST CHAR *src, size_t size )); #endif #ifndef HAVE_VSNPRINTF -EXTERN INT vsnprintf( CHAR *str, size_t count, CONST CHAR *fmt, va_list args ); +EXTERN INT vsnprintf PARAMS(( CHAR *str, size_t count, CONST CHAR *fmt, va_list args )); #endif