summaryrefslogtreecommitdiff
path: root/net-misc/ntp/files/ntp-4.2.8-gcc10-fno-common.patch
blob: d2ed719d8ff7689e6eb36be48ade8b2a7511f977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- ntp-4.2.8p14/include/ntp_config.h.psl
+++ ntp-4.2.8p14/include/ntp_config.h
@@ -280,7 +280,7 @@ typedef struct settrap_parms_tag {
  * Poll Skew List
  */
 
-psl_item psl[17-3+1];		/* values for polls 3-17 */
+extern psl_item psl[17-3+1];	/* values for polls 3-17 */
 				/* To simplify the runtime code we */
 				/* don't want to have to special-case */
 				/* dealing with a default */
--- ntp-4.2.8p14/ntpd/ntp_config.c.psl
+++ ntp-4.2.8p14/ntpd/ntp_config.c
@@ -202,6 +202,8 @@ int	cryptosw;		/* crypto command called
 
 extern char *stats_drift_file;	/* name of the driftfile */
 
+psl_item psl[17-3+1];        /* values for polls 3-17 */
+
 #ifdef BC_LIST_FRAMEWORK_NOT_YET_USED
 /*
  * backwards compatibility flags