git: 62ed2d0152dc - main - libc: Fix build with -DNS_REREAD_CONF.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Dec 2021 22:01:08 UTC
The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=62ed2d0152dce6da883fef753e0995e6d85e0cf1 commit 62ed2d0152dce6da883fef753e0995e6d85e0cf1 Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-12-29 22:00:17 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2021-12-29 22:01:05 +0000 libc: Fix build with -DNS_REREAD_CONF. MFC after: 3 days --- lib/libc/net/nsdispatch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libc/net/nsdispatch.c b/lib/libc/net/nsdispatch.c index b0f80d079b0b..ada7ac606e15 100644 --- a/lib/libc/net/nsdispatch.c +++ b/lib/libc/net/nsdispatch.c @@ -335,7 +335,9 @@ static int nss_configure(void) { static time_t confmod; +#ifndef NS_REREAD_CONF static int already_initialized = 0; +#endif struct stat statbuf; int result, isthreaded; const char *path;