Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2022 01:40:02 GMT
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 94b6c9bab7ef - stable/13 - cross-build: Define crypt_data in unistd.h for libcrypt
Message-ID:  <202201250140.20P1e2UQ044921@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=94b6c9bab7ef2d857d5d56d3e9f6b42926caefd5

commit 94b6c9bab7ef2d857d5d56d3e9f6b42926caefd5
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2021-12-06 22:29:51 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2022-01-24 23:59:21 +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
    
    (cherry picked from commit 8ceba27a5d51e2fcc0ea547d5051bd859d15233c)
---
 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?202201250140.20P1e2UQ044921>