8316b5f018
- Drop specific ABI version numbers from LIB_DEPENDS [2] - Trim Makefile header [2] - Convert to new options framework [2] - Fix build on 7.x [2] PR: ports/172395 Submitted by: Kurt Jaeger <fbsd-ports@opsec.eu> (maintainer) [1] Approved by: makc (mentor), maintainer [2]
15 lines
484 B
C
15 lines
484 B
C
--- ./binwalk.c.orig 2012-10-07 07:44:55.000000000 -0400
|
|
+++ ./binwalk.c 2012-10-07 07:57:58.000000000 -0400
|
|
@@ -78,7 +78,12 @@
|
|
|
|
/* Initialize default configuration settings */
|
|
/* Thanks to dannyb for these flags - much improved scan times! */
|
|
+#include <sys/param.h>
|
|
+#if __FreeBSD_version >= 800086
|
|
config.flags = MAGIC_NO_CHECK_TEXT | MAGIC_NO_CHECK_ENCODING;
|
|
+#else
|
|
+ config.flags = MAGIC_NO_CHECK_ASCII;
|
|
+#endif
|
|
config.align = DEFAULT_BYTE_ALIGN;
|
|
config.smart = 1;
|
|
|