]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: define STRERROR_R_CHAR_P for GNU-specific strerror_r 6751/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 1 Dec 2015 14:07:48 +0000 (15:07 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 1 Dec 2015 14:07:48 +0000 (15:07 +0100)
commit184914b8de1136e868730dbd337846a2875791be
treed0121fba21a5bb34200b057224fa33738b11f6db
parentac20f38f1f322ac4c532995e6215f2eec06e93c4
cmake: define STRERROR_R_CHAR_P for GNU-specific strerror_r

This is what autotools does with AC_FUNC_STRERROR_R bit.  It takes us
from

    $ monmaptool --print nonexistant
    monmaptool: monmap file nonexistant
    monmaptool: couldn't open nonexistant: (2)

to

    $ monmaptool --print nonexistant
    monmaptool: monmap file nonexistant
    monmaptool: couldn't open nonexistant: (2) No such file or directory

on cmake - otherwise we end up using GNU-specific version as if it was
the POSIX version.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
CMakeLists.txt
src/include/config-h.in.cmake