aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/include/common/string.h
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-09-19 12:08:16 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-09-19 12:08:16 +0000
commit79e02149fcb480c95cfda65e2145ed021dfde5a6 (patch)
tree3defde47c9eb9618bfd33119380455622861342a /tools/build/cross-build/include/common/string.h
parentb8bfffc1b619cca5262f848b665bd56c4de0052b (diff)
downloadsrc-79e02149fcb480c95cfda65e2145ed021dfde5a6.tar.gz
src-79e02149fcb480c95cfda65e2145ed021dfde5a6.zip
Fix dtrace tools bootstrap on non-FreeBSD after OpenZFS import
This required surprisingly few build system changes and only two changes to the openZFS compat headers which have been upstreamed as https://github.com/openzfs/zfs/pull/10863 Reviewed By: #zfs, freqlabs Differential Revision: https://reviews.freebsd.org/D26193
Notes
Notes: svn path=/head/; revision=365901
Diffstat (limited to 'tools/build/cross-build/include/common/string.h')
-rw-r--r--tools/build/cross-build/include/common/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/build/cross-build/include/common/string.h b/tools/build/cross-build/include/common/string.h
index 949f3fe10a5d..dd039d54583e 100644
--- a/tools/build/cross-build/include/common/string.h
+++ b/tools/build/cross-build/include/common/string.h
@@ -37,6 +37,10 @@
*/
#pragma once
+/* Avoid incompatible opensolaris redeclarations (without _FORTIFY_SOURCE). */
+#define HAVE_STRLCAT 1
+#define HAVE_STRLCPY 1
+
#include_next <string.h>
/*
* FreeBSD string.h #includes strings.h and all libmd code depends on