[ruby-cvs:71824] nobu:r64732 (trunk): Make qsort_r() flavor detecting work if qsort_r() is a macro

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Sep 13 20:00:55 JST 2018


nobu	2018-09-13 20:00:55 +0900 (Thu, 13 Sep 2018)

  New Revision: 64732

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64732

  Log:
    Make qsort_r() flavor detecting work if qsort_r() is a macro
    
    On FreeBSD we're going to switch to the GNU-ish version of qsort_r().
    POSIX is also considering standardizing that one. To prevent faulty
    calls, we have a macro in place to throw a compiler error if a BSD-style
    qsort_r() call is performed on a patched system. Such an approach tends
    to be permitted by POSIX.
    
    The configure check we have in Ruby would fail if qsort_r() is a
    function macro. Add parentheses around it to prevent macro expansion and
    force the declaration of a prototype.
    
    [Fix GH-1954]
    
    From: Ed Schouten <ed at nuxi.nl>

  Modified files:
    trunk/configure.ac


More information about the ruby-cvs mailing list