Current Path : /usr/src/crypto/heimdal/cf/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/crypto/heimdal/cf/broken-realloc.m4 |
dnl dnl $Id: broken-realloc.m4 15435 2005-06-16 19:45:52Z lha $ dnl dnl Test for realloc that doesn't handle NULL as first parameter dnl AC_DEFUN([rk_BROKEN_REALLOC], [ AC_CACHE_CHECK(if realloc if broken, ac_cv_func_realloc_broken, [ ac_cv_func_realloc_broken=no AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <stddef.h> #include <stdlib.h> int main(int argc, char **argv) { return realloc(NULL, 17) == NULL; } ]])],[:], [ac_cv_func_realloc_broken=yes],[:]) ]) if test "$ac_cv_func_realloc_broken" = yes ; then AC_DEFINE(BROKEN_REALLOC, 1, [Define if realloc(NULL) doesn't work.]) fi AH_BOTTOM([#ifdef BROKEN_REALLOC #define realloc(X, Y) rk_realloc((X), (Y)) #endif]) ])