Skip to content

Commit 644a2b3

Browse files
petkderickr
authored andcommitted
Fix AC_CHECK_FUNC macro call syntax for rand_r()
The AC_CHECK_FUNC macro has only the following form: AC_CHECK_FUNC(function, [action-if-found], [action-if-not-found]) In most cases adding more arguments to macro call don't cause errors, but it also doesn't have any functionality either.
1 parent 473a937 commit 644a2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/autotools/libbson/FindDependencies.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ AC_CHECK_FUNC(gmtime_r, [AC_SUBST(BSON_HAVE_GMTIME_R, 1)])
7373

7474
# Check for rand_r()
7575
AC_SUBST(BSON_HAVE_RAND_R, 0)
76-
AC_CHECK_FUNC(rand_r, [AC_SUBST(BSON_HAVE_RAND_R, 1)], [], [#include <stdlib.h>])
76+
AC_CHECK_FUNC(rand_r, [AC_SUBST(BSON_HAVE_RAND_R, 1)])
7777

7878
# Check for pthreads. We might need to make this better to handle mingw,
7979
# but I actually think it is okay to just check for it even though we will

0 commit comments

Comments
 (0)