Browse Source

fix run-time under 64-bit like NetBSD/sparc64

master
parent
commit
425bd9af92
  1. 12
      ntp/ntp.patch
  2. 5
      ntp/ntp.spec

12
ntp/ntp.patch

@ -0,0 +1,12 @@
--- ntpd/ntp_io.c.orig Thu Jan 3 05:03:15 2002
+++ ntpd/ntp_io.c Sun Jun 30 10:57:50 2002
@@ -437,7 +437,8 @@
continue;
}
# endif /* SYS_WINNT */
- ifreq = *ifr;
+ /* ifreq = *ifr; */
+ memmove(&ifreq, ifr, sizeof(ifreq));
inter_list[i].flags = 0;
/* is it broadcast capable? */
# ifndef SYS_WINNT

5
ntp/ntp.spec

@ -33,13 +33,14 @@ Distribution: OpenPKG [REL]
Group: Net
License: BSD-style
Version: 4.1.1a
Release: 20020429
Release: 20020630
# list of sources
Source0: ftp://ftp.udel.edu/pub/ntp/ntp4/ntp-%{version}.tar.gz
Source1: ntp-doc.tar.gz
Source2: ntp.conf
Source3: rc.ntp
Patch0: ntp.patch
# build information
Prefix: %{l_prefix}
@ -65,6 +66,8 @@ AutoReqProv: no
%prep
%setup0 -q -c
%setup1 -q -T -D -a 1
cd ntp-%{version}
%patch0 -p0
%build
( cd ntp-%{version}

Loading…
Cancel
Save