Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 2021 00:24:48 GMT
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8ceba27a5d51 - main - cross-build: Define crypt_data in unistd.h for libcrypt
Message-ID:  <202112070024.1B70OmVP020843@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112070024.1B70OmVP020843>