From: Wouter Wijngaards Date: Thu, 21 Jan 2010 15:44:20 +0000 (+0000) Subject: Version 5 of acx_nlnetlabs.m4 X-Git-Tag: release-1.6.5~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9afa0e1002c5f6160f4e597cd93f2dc60d86ed1;p=thirdparty%2Fldns.git Version 5 of acx_nlnetlabs.m4 --- diff --git a/acx_nlnetlabs.m4 b/acx_nlnetlabs.m4 index 9648ecd6..2d129225 100644 --- a/acx_nlnetlabs.m4 +++ b/acx_nlnetlabs.m4 @@ -2,8 +2,8 @@ # Copyright 2009, Wouter Wijngaards, NLnet Labs. # BSD licensed. # -# Version 4 -# Changelog +# Version 5 +# 2010-01-20 added AHX_COONFIG_STRLCAT # 2009-07-14 U_CHAR detection improved for windows crosscompile. # added ACX_FUNC_MALLOC # fixup some #if to #ifdef @@ -55,6 +55,7 @@ # AHX_CONFIG_INET_NTOP - inet_ntop compat prototype # AHX_CONFIG_INET_ATON - inet_aton compat prototype # AHX_CONFIG_MEMMOVE - memmove compat prototype +# AHX_CONFIG_STRLCAT - strlcat compat prototype # AHX_CONFIG_STRLCPY - strlcpy compat prototype # AHX_CONFIG_GMTIME_R - gmtime_r compat prototype # AHX_CONFIG_W32_SLEEP - w32 compat for sleep @@ -1088,6 +1089,16 @@ void *memmove(void *dest, const void *src, size_t n); #endif ]) +dnl provide strlcat compat prototype. +dnl $1: unique name for compat code +AC_DEFUN([AHX_CONFIG_STRLCAT], +[ +#ifndef HAVE_STRLCAT +#define strlcat strlcat_$1 +size_t strlcat(char *dst, const char *src, size_t siz); +#endif +]) + dnl provide strlcpy compat prototype. dnl $1: unique name for compat code AC_DEFUN([AHX_CONFIG_STRLCPY],