Browse Source

fix building under Linux

master
parent
commit
fb1966a42e
  1. 10
      ntp/ntp.patch
  2. 2
      ntp/ntp.spec

10
ntp/ntp.patch

@ -1,20 +1,22 @@
Index: ntpd/ntp_io.c
--- ntpd/ntp_io.c.orig 2009-12-09 08:36:37 +0100
+++ ntpd/ntp_io.c 2009-12-17 09:15:19 +0100
@@ -64,6 +64,12 @@
+++ ntpd/ntp_io.c 2010-01-05 23:39:27 +0100
@@ -64,6 +64,14 @@
#define SETSOCKOPT_ARG_CAST
#endif
+#ifdef INCLUDE_IPV6_SUPPORT
+#include <netinet/in.h>
+#ifdef __FreeBSD__
+#include <net/if_var.h>
+#include <netinet/in_var.h>
+#endif
+#endif /* !INCLUDE_IPV6_SUPPORT */
+
extern int listen_to_virtual_ips;
/*
@@ -1470,6 +1476,36 @@
@@ -1470,6 +1478,36 @@
}
#endif /* OS_NEEDS_REUSEADDR_FOR_IFADDRBIND */
@ -51,7 +53,7 @@ Index: ntpd/ntp_io.c
/*
* update_interface strategy
*
@@ -1592,6 +1628,11 @@
@@ -1592,6 +1630,11 @@
if (is_wildcard_addr(&interface.sin))
continue;

2
ntp/ntp.spec

@ -37,7 +37,7 @@ Class: CORE
Group: Network
License: BSD-style
Version: %{V_major}.%{V_minor}.%{V_micro}
Release: 20091217
Release: 20100105
# package options
%option with_fsl yes

Loading…
Cancel
Save