openntpd: drop res_init patch
This commit is contained in:
parent
a0a0493fd0
commit
a37c17fdb0
@ -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 */
|
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'openntpd'
|
# Template file for 'openntpd'
|
||||||
pkgname=openntpd
|
pkgname=openntpd
|
||||||
version=5.9p1
|
version=5.9p1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-privsep-user=$pkgname --with-cacert=/etc/ssl/certs.pem"
|
configure_args="--with-privsep-user=$pkgname --with-cacert=/etc/ssl/certs.pem"
|
||||||
hostmakedepends="automake libtool"
|
hostmakedepends="automake libtool"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user