Skip to content

Commit

Permalink
Fix configure error in testing for POSIX regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Jan 2, 2022
1 parent db20b9e commit d575033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,10 @@ if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
# So we run a test program. If we're cross-compiling, do it the old way.
AC_MSG_CHECKING(for POSIX regcomp)
AC_TRY_RUN([
#include <stdlib.h>
#include <sys/types.h>
#include <regex.h>
main() { regex_t r; regmatch_t rm; char *text = "xabcy";
int main() { regex_t r; regmatch_t rm; char *text = "xabcy";
if (regcomp(&r, "abc", 0)) exit(1);
if (regexec(&r, text, 1, &rm, 0)) exit(1);
#ifndef __WATCOMC__
Expand Down

0 comments on commit d575033

Please sign in to comment.