]> granicus.if.org Git - mutt/commitdiff
Verify that regmatch_t has offsets, and not only pointers. From Sam
authorThomas Roessler <roessler@does-not-exist.org>
Sat, 20 May 2000 07:07:41 +0000 (07:07 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sat, 20 May 2000 07:07:41 +0000 (07:07 +0000)
Roberts <sroberts@uniserve.com>.

configure.in

index 13e38035ed95e11ea72cb961a383ef6f31ab021c..4d5fb82e1d25a7b3534d7402d36560c733330cfb 100644 (file)
@@ -275,7 +275,7 @@ if test $mutt_cv_regex = no ; then
        AC_TRY_RUN([
 #include <unistd.h>
 #include <regex.h>
-main() { regex_t blah ; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }],
+main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }],
        mutt_cv_regex_broken=no, mutt_cv_regex_broken=yes, mutt_cv_regex_broken=yes)
        AC_MSG_RESULT([$mutt_cv_regex_broken])
        if test $mutt_cv_regex_broken = yes ; then