diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2022-07-03 11:52:44 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-07-09 17:34:31 +0000 |
commit | 8928883477ff32cbbb97ee0e871324812e3b5c96 (patch) | |
tree | 1ac12eefbeb297b9b17465dc23e5fab54ff3eac8 /configure.ac | |
parent | 19b13bf20de5b15ab87fb4019ec910ef3216129f (diff) |
Use explicit_bzero if available
Optimizing compilers may remove the bzero call because it is followed
by free. The function explicit_bzero avoids this optimization. Use it
if it is available.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index cc38e7f..47316ce 100644 --- a/configure.ac +++ b/configure.ac @@ -45,7 +45,7 @@ XORG_DEFAULT_OPTIONS AC_PROG_LN_S # Checks for library functions. -AC_CHECK_FUNCS([pathconf]) +AC_CHECK_FUNCS([explicit_bzero pathconf]) # Obtain compiler/linker options for depedencies PKG_CHECK_MODULES(XAU, xproto) |