Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 2dba022

Browse files
authored
Merge pull request #658 from t-b/fix-snprintf-detection
[Backport] log4tango: Fix snprintf test
2 parents 02795ec + 691dfbf commit 2dba022

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

log4tango/m4/AC_FUNC_SNPRINTF.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dnl
1313
AC_DEFUN([AC_FUNC_SNPRINTF],
1414
[AC_CACHE_CHECK(for working snprintf, ac_cv_func_snprintf,
1515
[AC_TRY_RUN([#include <stdio.h>
16+
#include <stdlib.h> // exit
1617
int main () { int l = snprintf(NULL,0,"%d",100); exit (!((3 <= l) || (-1 == l))); }
1718
], ac_cv_func_snprintf=yes, ac_cv_func_snprintf=no,
1819
ac_cv_func_snprintf=no)])

0 commit comments

Comments
 (0)