aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/include/common
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2021-12-06 22:29:51 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2021-12-07 00:24:19 +0000
commit8ceba27a5d51e2fcc0ea547d5051bd859d15233c (patch)
tree9b79a0dae0cd375374abfd80a3af725de92afb18 /tools/build/cross-build/include/common
parent7d232d647e3583b495d431b12eaa9343bb29b271 (diff)
downloadsrc-8ceba27a5d51e2fcc0ea547d5051bd859d15233c.tar.gz
src-8ceba27a5d51e2fcc0ea547d5051bd859d15233c.zip
cross-build: Define crypt_data in unistd.h for libcrypt
This is where it's defined in the base system, so is where libcrypt expects it to exist when being built, and will be needed when being bootstrapped in a subsequent commit. MFC after: 1 week
Diffstat (limited to 'tools/build/cross-build/include/common')
-rw-r--r--tools/build/cross-build/include/common/unistd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/build/cross-build/include/common/unistd.h b/tools/build/cross-build/include/common/unistd.h
index 593dd700f140..fbcc0cc31795 100644
--- a/tools/build/cross-build/include/common/unistd.h
+++ b/tools/build/cross-build/include/common/unistd.h
@@ -39,6 +39,11 @@
#include_next <unistd.h>
#include <getopt.h>
+struct crypt_data {
+ int initialized; /* For compatibility with glibc. */
+ char __buf[256]; /* Buffer returned by crypt_r(). */
+};
+
static inline int
check_utility_compat(const char *utility __unused)
{