]> granicus.if.org Git - check/commit
In cmake build, use mkstemp when present
authorJoshua D. Boyd <jdboyd@jdboyd.net>
Tue, 22 Mar 2016 04:50:34 +0000 (00:50 -0400)
committerJoshua D. Boyd <jdboyd@jdboyd.net>
Wed, 23 Mar 2016 02:58:16 +0000 (22:58 -0400)
commit3bbd45e73f8991ede52887e72044204463b8ffe4
treec4522691ae83c78b5118887aef31a992dff1c496
parentab9bddc96dc604b3c396f77b059a403b97a9dbe3
In cmake build, use mkstemp when present

This fixes this error, seen when building with cmake:

    check/src/check_msg.c:247: warning: the use of 'tempnam' is dangerous, better use `mkstemp'

CMakeLists.txt checks for mkstemp being present and sents a cmake
variable HAVE_MKSTEMP.  The check_msg.c file will use mkstemp if
HAVE_MKSTEMP is true, but the cmake variable wasn't causing HAVE_MKSTEMP
to be defined for the C compiler.
CMakeLists.txt