]> Dogcows Code - chaz/tar/commitdiff
(AC_FUNC_FNMATCH): Include fnmatch.h when testing fnmatch.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Nov 1999 21:06:38 +0000 (21:06 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Nov 1999 21:06:38 +0000 (21:06 +0000)
m4/fnmatch.m4

index 5654a41411959866b88e9995353b4fc3fee73466..312990dc5afa7edcba405190df8186116cd938f9 100644 (file)
@@ -7,7 +7,8 @@ AC_DEFUN(AC_FUNC_FNMATCH,
 # Some versions of Solaris or SCO have a broken or incompatible fnmatch.
 # So we run a test program.  If we are cross-compiling, take no chance.
 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
-[AC_TRY_RUN([main() {
+[AC_TRY_RUN([#include <fnmatch.h>
+main() {
   exit (fnmatch ("a*", "abc", 0) != 0
        || fnmatch("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0);
 }],
This page took 0.02445 seconds and 4 git commands to generate.