mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
cross-build: Provide _PASSWORD_EFMT1 for libcrypt on Linux
Linux's pwd.h does not define _PASSWORD_EFMT1 (macOS's does), so we need
to define it in order to be able to bootstrap libcrypt (crypt-des.c uses
it) on non-FreeBSD, which will be done in a subsequent commit.
MFC after: 1 week
(cherry picked from commit e0cb1fe7dd
)
This commit is contained in:
parent
94b6c9bab7
commit
102717f773
@ -41,6 +41,10 @@
|
||||
|
||||
#define user_from_uid __nbcompat_user_from_uid
|
||||
|
||||
#ifndef _PASSWORD_EFMT1
|
||||
#define _PASSWORD_EFMT1 '_' /* extended encryption format */
|
||||
#endif
|
||||
|
||||
int pwcache_userdb(int (*a_setpassent)(int), void (*a_endpwent)(void),
|
||||
struct passwd *(*a_getpwnam)(const char *),
|
||||
struct passwd *(*a_getpwuid)(uid_t));
|
||||
|
Loading…
Reference in New Issue
Block a user