rdate (1:1.2-4) 08-538695-use-libbsd.patch

Summary

 Makefile.am     |    2 +-
 Makefile.in     |    2 +-
 src/Makefile.am |    5 ++---
 src/Makefile.in |    8 +++-----
 src/ntp.c       |    2 +-
 5 files changed, 8 insertions(+), 11 deletions(-)

    
download this patch

Patch contents

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,8 +1,7 @@
 noinst_LIBRARIES=librdate.a
 
-librdate_a_SOURCES= arc4random.c \
+librdate_a_SOURCES= \
                ntp.c \
                ntpleaps.c \
                rfc868time.c \
-               ntpleaps.h \
-               arc4random.h 
+               ntpleaps.h
--- a/src/ntp.c
+++ b/src/ntp.c
@@ -50,7 +50,7 @@
 #include <unistd.h>
 
 #include "ntpleaps.h"
-#include "arc4random.h"
+#include <bsd/random.h>
 
 /*
  * NTP definitions.  Note that these assume 8-bit bytes - sigh.  There
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,7 +6,7 @@ rdate_SOURCES= \
         src/rdate.c
 
 rdate_LDADD= \
-        src/librdate.a
+        src/librdate.a -lbsd
 
 man_MANS= \
     docs/rdate.8
--- a/Makefile.in
+++ b/Makefile.in
@@ -183,7 +183,7 @@ rdate_SOURCES = \
         src/rdate.c
 
 rdate_LDADD = \
-        src/librdate.a
+        src/librdate.a -lbsd
 
 man_MANS = \
     docs/rdate.8
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -50,7 +50,7 @@ AR = ar
 ARFLAGS = cru
 librdate_a_AR = $(AR) $(ARFLAGS)
 librdate_a_LIBADD =
-am_librdate_a_OBJECTS = arc4random.$(OBJEXT) ntp.$(OBJEXT) \
+am_librdate_a_OBJECTS = ntp.$(OBJEXT) \
 	ntpleaps.$(OBJEXT) rfc868time.$(OBJEXT)
 librdate_a_OBJECTS = $(am_librdate_a_OBJECTS)
 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
@@ -155,12 +155,11 @@ sharedstatedir = @sharedstatedir@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 noinst_LIBRARIES = librdate.a
-librdate_a_SOURCES = arc4random.c \
+librdate_a_SOURCES = \
                ntp.c \
                ntpleaps.c \
                rfc868time.c \
-               ntpleaps.h \
-               arc4random.h 
+               ntpleaps.h
 
 all: all-am
 
@@ -209,7 +208,6 @@ mostlyclean-compile:
 distclean-compile:
 	-rm -f *.tab.c
 
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arc4random.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntp.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntpleaps.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rfc868time.Po@am__quote@