git: cf1507aacb3f - stable/13 - tcp_wrappers: include <unistd.h>
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Mar 2022 18:53:55 UTC
The branch stable/13 has been updated by pstef:
URL: https://cgit.FreeBSD.org/src/commit/?id=cf1507aacb3f52e8c2147cda163b0df8c4df7f80
commit cf1507aacb3f52e8c2147cda163b0df8c4df7f80
Author: Piotr Pawel Stefaniak <pstef@FreeBSD.org>
AuthorDate: 2022-02-13 18:14:55 +0000
Commit: Piotr Pawel Stefaniak <pstef@FreeBSD.org>
CommitDate: 2022-03-22 18:33:18 +0000
tcp_wrappers: include <unistd.h>
This is for getdomainname(3).
(cherry picked from commit 7d636a4d3ebd070acefb05c53c896cd75a9ea745)
---
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;