Follow up to
a480eaa (does the same for auth-pam.c).
Signed-off-by: Saifur Rahman Mohsin <mohsin92@me.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <
20220224172330.43451-1-mohsin92@me.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23890.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
{
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);