Date: Wed, 23 Feb 2022 15:27:43 GMT From: Piotr Pawel Stefaniak <pstef@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7d636a4d3ebd - main - tcp_wrappers: include <unistd.h> Message-ID: <202202231527.21NFRhU3099921@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pstef: URL: https://cgit.FreeBSD.org/src/commit/?id=7d636a4d3ebd070acefb05c53c896cd75a9ea745 commit 7d636a4d3ebd070acefb05c53c896cd75a9ea745 Author: Piotr Pawel Stefaniak <pstef@FreeBSD.org> AuthorDate: 2022-02-13 18:14:55 +0000 Commit: Piotr Pawel Stefaniak <pstef@FreeBSD.org> CommitDate: 2022-02-23 15:26:14 +0000 tcp_wrappers: include <unistd.h> This is for getdomainname(3). --- contrib/tcp_wrappers/workarounds.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/tcp_wrappers/workarounds.c b/contrib/tcp_wrappers/workarounds.c index 1ad2c6471ef3..3d4e9e6783d1 100644 --- a/contrib/tcp_wrappers/workarounds.c +++ b/contrib/tcp_wrappers/workarounds.c @@ -23,6 +23,9 @@ char sccsid[] = "@(#) workarounds.c 1.6 96/03/19 16:22:25"; #include <stdio.h> #include <syslog.h> #include <string.h> +#ifdef USE_GETDOMAIN +#include <unistd.h> +#endif extern int errno;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202231527.21NFRhU3099921>