openntpd: drop res_init patch

This commit is contained in:
Michael Gehring 2016-03-30 16:25:47 +02:00
parent a0a0493fd0
commit a37c17fdb0
2 changed files with 1 additions and 24 deletions

View File

@ -1,23 +0,0 @@
Reset transient resolver failures in glibc
https://github.com/openntpd-portable/openntpd-portable/issues/12
--- src/config.c.orig 2016-03-28 15:51:51.000000000 +0200
+++ src/config.c 2016-03-30 16:03:00.816787846 +0200
@@ -23,6 +23,7 @@
#include <netinet/in.h>
#include <errno.h>
+#include <resolv.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -132,6 +133,9 @@
struct sockaddr_in6 *sa_in6;
struct ntp_addr *h, *hh = NULL;
+#ifdef __GLIBC__
+ res_init();
+#endif
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_DGRAM; /* DUMMY */

View File

@ -1,7 +1,7 @@
# Template file for 'openntpd'
pkgname=openntpd
version=5.9p1
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-privsep-user=$pkgname --with-cacert=/etc/ssl/certs.pem"
hostmakedepends="automake libtool"