Changeset 823d8e1 for lib/strndup.c


Ignore:
Timestamp:
06/29/18 09:49:20 (2 years ago)
Author:
Alistair King <alistair@…>
Branches:
cachetimestamps, develop, master, rc-4.0.4, ringdecrementfix, ringperformance
Children:
47d64ce
Parents:
c7f1faf
Message:

Replace AC_CHECK_FUNCS with AC_CHECK_DECLS

It seems that AC_CHECK_FUNCS does not correctly detect when these "functions" are implemented as macros. (I've seen this happening on macOS, and Ubuntu 16.04 with snprintf and strndup respectively.) Replacing AC_CHECK_FUNCS (and the similar AC_REPLACE_FUNCS) with AC_CHECK_DECLS seems to solve this problem, though I don't have access to any systems that do not have these functions to be sure that it correctly detects them as missing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/strndup.c

    ree6e802 r823d8e1  
    2424 *
    2525 */
    26 #ifndef HAVE_STRNDUP
     26#include "config.h"
     27#if !HAVE_DECL_STRNDUP
    2728
    2829#include <stdlib.h>
Note: See TracChangeset for help on using the changeset viewer.