<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#bug https://bugs.gentoo.org/715776
#bug https://bugs.gentoo.org/919876
and general port to C23
--- a/configure
+++ b/configure
@@ -134,6 +100,7 @@
 
 echo -n 'Checking for BSD signal semantics... '
 cat &lt;&lt;EOF &gt;__conftest.c
+#define _DEFAULT_SOURCE
 #include &lt;unistd.h&gt;
 #include &lt;signal.h&gt;
 int count=0;
--- a/timed/lib/cksum.c
+++ b/timed/lib/cksum.c
@@ -41,6 +41,7 @@
 #ident "$Revision: 1.4 $"
 #endif
 
+#define _DEFAULT_SOURCE
 #include &lt;sys/types.h&gt;
 #include &lt;sys/time.h&gt;
 #include "timed-extern.h"
--- a/timed/timed/globals.h
+++ b/timed/timed/globals.h
@@ -37,6 +37,7 @@
 #ident "$Revision: 1.5 $"
 #endif
 
+#define _DEFAULT_SOURCE
 #include &lt;sys/param.h&gt;
 #include &lt;sys/time.h&gt;
 #include &lt;sys/socket.h&gt;
--- a/timed/timedc/cmds.c
+++ b/timed/timedc/cmds.c
@@ -41,6 +41,7 @@
 #ident "$Revision: 1.11 $"
 #endif
 
+#define _DEFAULT_SOURCE
 #include "timedc.h"
 #include &lt;string.h&gt;
 #include &lt;sys/file.h&gt;
--- a/timed/timedc/timedc.c
+++ b/timed/timedc/timedc.c
@@ -45,6 +45,7 @@
 #ident "$Revision: 1.8 $"
 #endif
 
+#define _DEFAULT_SOURCE
 #include "timedc.h"
 #include &lt;string.h&gt;
 #include &lt;signal.h&gt;
--- a/timed/timed/networkdelta.c
+++ b/timed/timed/networkdelta.c
@@ -40,8 +40,8 @@
 #ifdef sgi
 #ident "$Revision: 1.4 $"
 #endif
-#include &lt;math.h&gt;
 #include "globals.h"
+#include &lt;math.h&gt;
 
 static long median(float, float*, long*, long*, unsigned int);
 
</pre></body></html>