summaryrefslogtreecommitdiff
path: root/net/ntp4
diff options
context:
space:
mode:
authorchristos <christos@pkgsrc.org>2015-10-29 11:23:47 +0000
committerchristos <christos@pkgsrc.org>2015-10-29 11:23:47 +0000
commit32997dcefec3e309fe692c1e6641e772b76f461d (patch)
tree8940f8271f74ca9f2be0b30aa9347147d5a6c977 /net/ntp4
parentac8b239811801d1941ad41571ebeedb16d010c41 (diff)
downloadpkgsrc-32997dcefec3e309fe692c1e6641e772b76f461d.tar.gz
- rename patch-aa to follow not so new anymore convention
- apply the "warmup" patch only on linux. should fix the build on netbsd-6
Diffstat (limited to 'net/ntp4')
-rw-r--r--net/ntp4/patches/patch-include-ntp__syscall.h (renamed from net/ntp4/patches/patch-aa)2
-rw-r--r--net/ntp4/patches/patch-ntpd-ntpd.c17
2 files changed, 18 insertions, 1 deletions
diff --git a/net/ntp4/patches/patch-aa b/net/ntp4/patches/patch-include-ntp__syscall.h
index bbac1a6ba92..a713da23fcf 100644
--- a/net/ntp4/patches/patch-aa
+++ b/net/ntp4/patches/patch-include-ntp__syscall.h
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.11 2014/01/12 17:01:02 spz Exp $
+$NetBSD: patch-include-ntp__syscall.h,v 1.1 2015/10/29 11:23:47 christos Exp $
--- include/ntp_syscall.h.orig 2011-03-31 10:03:53.000000000 +0000
+++ include/ntp_syscall.h
diff --git a/net/ntp4/patches/patch-ntpd-ntpd.c b/net/ntp4/patches/patch-ntpd-ntpd.c
new file mode 100644
index 00000000000..eb7bb066ec5
--- /dev/null
+++ b/net/ntp4/patches/patch-ntpd-ntpd.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-ntpd-ntpd.c,v 1.1 2015/10/29 11:23:47 christos Exp $
+
+Apply the stupid glibc "warmup" only on linux
+
+--- ntpd/ntpd.c.orig 2015-10-21 12:14:24.000000000 -0400
++++ ntpd/ntpd.c 2015-10-29 07:20:41.000000000 -0400
+@@ -32,7 +32,9 @@
+ # ifdef HAVE_PTHREAD_H
+ # include <pthread.h>
+ # endif
+-# define NEED_PTHREAD_WARMUP
++# ifdef __linux__
++# define NEED_PTHREAD_WARMUP
++# endif
+ #endif
+
+ #ifdef HAVE_UNISTD_H