1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#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 <<EOF >__conftest.c
+#define _DEFAULT_SOURCE
#include <unistd.h>
#include <signal.h>
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 <sys/types.h>
#include <sys/time.h>
#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 <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
--- 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 <string.h>
#include <sys/file.h>
--- 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 <string.h>
#include <signal.h>
--- a/timed/timed/networkdelta.c
+++ b/timed/timed/networkdelta.c
@@ -40,8 +40,8 @@
#ifdef sgi
#ident "$Revision: 1.4 $"
#endif
-#include <math.h>
#include "globals.h"
+#include <math.h>
static long median(float, float*, long*, long*, unsigned int);
|