瀏覽代碼

(AC_FUNC_FNMATCH): Include fnmatch.h when testing fnmatch.

Paul Eggert 25 年之前
父節點
當前提交
0ca48105ea
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      m4/fnmatch.m4

+ 2 - 1
m4/fnmatch.m4

@@ -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);
 }],