git: 7d636a4d3ebd - main - tcp_wrappers: include <unistd.h>

From: Piotr Pawel Stefaniak <pstef_at_FreeBSD.org>
Date: Wed, 23 Feb 2022 15:27:43 UTC
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;