--- ./src/options.c.orig	2021-07-14 02:07:42 +0000
+++ ./src/options.c	2021-07-14 02:08:28 +0000
@@ -1842,8 +1842,12 @@
     case CMD_SET_DEFAULTS:
         section->log_level=LOG_NOTICE;
 #if !defined (USE_WIN32) && !defined (__vms)
+#if defined(LOG_AUTHPRIV)
+        new_global_options.log_facility=LOG_AUTHPRIV;
+#else
         new_global_options.log_facility=LOG_DAEMON;
 #endif
+#endif
         break;
     case CMD_SET_COPY:
         section->log_level=new_service_options.log_level;
--- a/doc/stunnel.pod.in_orig	2023-05-05 08:47:40.544893014 +0000
+++ b/doc/stunnel.pod.in	2023-05-05 08:53:29.861505326 +0000
@@ -197,7 +197,7 @@
 
 The default logging level is notice (5).
 
-The syslog 'daemon' facility will be used unless a facility name is supplied.
+The syslog 'authpriv' facility will be used unless a facility name is supplied.
 (Facilities are not supported on Win32.)
 
 Case is ignored for both facilities and levels.
--- a/doc/stunnel.html.in_orig	2023-05-05 08:55:57.499392415 +0000
+++ b/doc/stunnel.html.in	2023-05-05 08:58:18.689566956 +0000
@@ -248,7 +248,7 @@
 
 <p>The default logging level is notice (5).</p>
 
-<p>The syslog &#39;daemon&#39; facility will be used unless a facility name is supplied. (Facilities are not supported on Win32.)</p>
+<p>The syslog &#39;authpriv&#39; facility will be used unless a facility name is supplied. (Facilities are not supported on Win32.)</p>
 
 <p>Case is ignored for both facilities and levels.</p>
 
--- a/doc/stunnel.8.in_orig	2023-05-05 08:53:41.974309241 +0000
+++ b/doc/stunnel.8.in	2023-05-05 08:55:48.708007331 +0000
@@ -209,7 +209,7 @@
 .Sp
 The default logging level is notice (5).
 .Sp
-The syslog 'daemon' facility will be used unless a facility name is supplied.
+The syslog 'authpriv' facility will be used unless a facility name is supplied.
 (Facilities are not supported on Win32.)
 .Sp
 Case is ignored for both facilities and levels.
