Changeset 2cbe7c3 for configure.ac


Ignore:
Timestamp:
Mar 19, 2011, 11:19:29 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
4dde585
Parents:
41f0cf3
git-author:
Anders Kaseorg <andersk@mit.edu> (03/19/11 22:28:30)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/19/11 23:19:29)
Message:
Protect memrchr prototype by !HAVE_DECL_MEMCHR instead of !HAVE_MEMCHR

This fixes
viewwin.c:393:7: warning: implicit declaration of function ‘memrchr’
on platforms where PERL_CFLAGS doesn’t contain -D_GNU_SOURCE.

!HAVE_MEMRCHR means that memrchr is undefined at link time, so we need
to provide our own implementation; but !HAVE_DECL_MEMRCHR means that
memrchr is not declared at compile time, so we need to provide our own
prototype.

http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00037.html

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r8061a6a r2cbe7c3  
    159159
    160160AC_CONFIG_LIBOBJ_DIR([compat])
     161AC_CHECK_DECLS([memrchr])
    161162AC_REPLACE_FUNCS([memrchr])
    162163
Note: See TracChangeset for help on using the changeset viewer.