Follow up to a480eaa (does the same for auth-pam.c).
Signed-off-by: Saifur Rahman Mohsin<[email protected]>
---
src/plugins/auth-pam/auth-pam.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c
index 3be647e9..33492e9c 100644
--- a/src/plugins/auth-pam/auth-pam.c
+++ b/src/plugins/auth-pam/auth-pam.c
@@ -214,10 +214,17 @@ daemonize(const char *envp[])
{
fd = dup(2);
}
+#if defined(__APPLE__) && defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
if (daemon(0, 0) < 0)
{
plugin_log(PLOG_ERR|PLOG_ERRNO, MODULE, "daemonization failed");
}
+#if defined(__APPLE__) && defined(__clang__)
+#pragma clang diagnostic pop
+#endif
else if (fd >= 3)
{
dup2(fd, 2);
--
2.32.0 (Apple Git-132)
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel