Author: obrien
Date: Fri Jan 2 03:31:45 2009
New Revision: 186692
URL: http://svn.freebsd.org/changeset/base/186692
Log:
Add an additional COMPILE_ONLY check.
Modified:
head/contrib/file/apprentice.c
Modified: head/contrib/file/apprentice.c
==============================================================================
--- head/contrib/file/apprentice.c Fri Jan 2 03:10:55 2009
(r186691)
+++ head/contrib/file/apprentice.c Fri Jan 2 03:31:45 2009
(r186692)
@@ -588,9 +588,11 @@ set_test_type(struct magic *mstart, stru
break;
case FILE_REGEX:
case FILE_SEARCH:
+#ifndef COMPILE_ONLY
/* binary test if pattern is not text */
if (file_looks_utf8(m->value.us, m->vallen, NULL, NULL) <= 0)
mstart->flag |= BINTEST;
+#endif
break;
case FILE_DEFAULT:
/* can't deduce anything; we shouldn't see this at the
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"