git: 8ceba27a5d51 - main - cross-build: Define crypt_data in unistd.h for libcrypt
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Dec 2021 00:24:48 UTC
The branch main has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=8ceba27a5d51e2fcc0ea547d5051bd859d15233c
commit 8ceba27a5d51e2fcc0ea547d5051bd859d15233c
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2021-12-06 22:29:51 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2021-12-07 00:24:19 +0000
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
---
tools/build/cross-build/include/common/unistd.h | 5 +++++
1 file changed, 5 insertions(+)
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)
{