Преглед изворни кода

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

Ralf S. Engelschall пре 24 година
родитељ
комит
425bd9af92
2 измењених фајлова са 16 додато и 1 уклоњено
  1. 12 0
      ntp/ntp.patch
  2. 4 1
      ntp/ntp.spec

+ 12 - 0
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

+ 4 - 1
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}