Re: [chrony-dev] [Git][chrony/chrony][master] 7 commits: doc: improve description of logbanner |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] [Git][chrony/chrony][master] 7 commits: doc: improve description of logbanner
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Thu, 1 May 2025 09:36:28 +1200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smtpservice.net; i=@smtpservice.net; q=dns/txt; s=a1-4; t=1746049007; h=feedback-id : x-smtpcorp-track : date : message-id : to : subject : from : reply-to : sender : list-unsubscribe : list-unsubscribe-post; bh=Re9WKr/R+8QOfXImbZPC8Ty1kj+Z9SAGfKZ0hqT4fw8=; b=3bMGbImNsEf3wEBEGBxO+kD/zdZGS5/rn/eibELzP5Y7k7zW3PfOFubzhxY3GvPwbDbYT 6dPffw+Xqv8/6l8HeYp2fLsx7n9zWbWsUl5NrT4d9XNu8LZVAsks84jDjHO32Lw+q21VXrP V30Ajhc1a8AvFhQif+r1XWoVN/DcMEMs5AKi3qx/yt4yMM3UWFIXWLbF407VSnQ7AViI7yV g2mRi5ijlKYKXFpGLfNgGBSscz86gNBfccOtIaaPBwpH5s2JgxqAt8QwZe5+uPMXZo/voTc CxGiZZFZKp/2LdO6F8UzGzt67xoF4WQVCg4U7U2euTKNSvBPTo+19ETzMPpw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatroute.net; i=@whatroute.net; q=dns/txt; s=s149811; t=1746049007; h=from : subject : to : message-id : date; bh=Re9WKr/R+8QOfXImbZPC8Ty1kj+Z9SAGfKZ0hqT4fw8=; b=IjMgIvBiOcUTfC5AKwYmd2kJcmQuUQF+COWrhGUGOzoaUXU8WnaqG3jOul/tLaprD+S6v VzVwB9XwAWUwxfLbRFBKrQuwXGtC4UaXipUHIzKolOCOWjprvj+yN9RdYz+W+HIinwhGkHe mu+vbCg+Y5eJ7acV8NRJ5/bCNaEQDBTJ91LDMHJu5M/LB8U02IrDPXW+VRX2i6mvIKHyjFU Mkyp1BLg0gyLObs8MA86mnTt1+xukCS/m8sY/x+t/J7S97eA9P30K6ncFxhj4Yrx+gnS67k R0eH4fdhjv9ENRU90yaXFNK9j/kI5+HRTrNu5JWsJADXSfdhnQsXDRHS9QQA==
- Feedback-id: 149811m:149811acx33YQ:149811shQ-DsWr-w
macOS does not declare SOCK_CLOEXEC and SOCK_NONBLOCK. I think the following patch will correct the warning.
diff --git a/socket.c b/socket.c
index d08b865..c5d15a7 100644
--- a/socket.c
+++ b/socket.c
@@ -44,6 +44,11 @@
#include "ptp.h"
#include "util.h"
+#ifdef MACOSX
+#define SOCK_CLOEXEC FD_CLOEXEC
+#define SOCK_NONBLOCK O_NONBLOCK
+#endif
+
#define INVALID_SOCK_FD (-4)
#define CMSG_BUF_SIZE 256
> On 1 May 2025, at 06:47, Bryan Christianson <bryan@xxxxxxxxxxxxx> wrote:
>
> Compiler warning on macOS Sequoia.
>
> gcc -O2 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Wmissing-prototypes -Wall -pthread -c socket.c
> socket.c:216:1: warning: unused function 'get_default_inet_domain' [-Wunused-function]
> 216 | get_default_inet_domain(void)
> | ^~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
>
>
Bryan Christianson
bryan@xxxxxxxxxxxxx
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.