summaryrefslogtreecommitdiff
path: root/news/nntpcache/patches
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-03-07 12:04:41 +0000
committertv <tv@pkgsrc.org>2005-03-07 12:04:41 +0000
commitfb767aabcf5be92e35cd6f25088207a8dbaf2701 (patch)
treeae868037255e13d8b06410900083693388ab5dea /news/nntpcache/patches
parent398d17537e1d4aa569e542e3ca4f02b912bab8e0 (diff)
downloadpkgsrc-fb767aabcf5be92e35cd6f25088207a8dbaf2701.tar.gz
Fix compilation failure on Interix: add autoconf check for sync(2).
Diffstat (limited to 'news/nntpcache/patches')
-rw-r--r--news/nntpcache/patches/patch-aa13
-rw-r--r--news/nntpcache/patches/patch-ab13
-rw-r--r--news/nntpcache/patches/patch-ac14
-rw-r--r--news/nntpcache/patches/patch-ad14
4 files changed, 54 insertions, 0 deletions
diff --git a/news/nntpcache/patches/patch-aa b/news/nntpcache/patches/patch-aa
new file mode 100644
index 00000000000..d6b2554fc9b
--- /dev/null
+++ b/news/nntpcache/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.6 2005/03/07 12:04:41 tv Exp $
+
+--- configure.in.orig 2002-04-05 11:53:09.000000000 -0500
++++ configure.in
+@@ -206,7 +206,7 @@ AC_CHECK_LIB(crypt, crypt)
+ AC_CHECK_LIB(wrap, request_init)
+ dnl aix
+ AC_CHECK_LIB(flock, bsd)
+-AC_CHECK_FUNCS(getdtablesize usleep utime waitpid wait3 chroot strdup vsnprintf daemon setenv putenv mmap getpagesize setproctitle snprintf strerror setpriority getspnam statfs statvfs strcasecmp)
++AC_CHECK_FUNCS(getdtablesize usleep utime waitpid wait3 chroot strdup vsnprintf daemon setenv putenv mmap getpagesize setproctitle snprintf strerror setpriority getspnam statfs statvfs strcasecmp sync)
+
+ AC_MSG_CHECKING(for passwd authinfo support)
+ AC_ARG_WITH(authinfo-passwd,
diff --git a/news/nntpcache/patches/patch-ab b/news/nntpcache/patches/patch-ab
new file mode 100644
index 00000000000..bd41d7b29cc
--- /dev/null
+++ b/news/nntpcache/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2005/03/07 12:04:41 tv Exp $
+
+--- configure.orig 2002-04-05 13:26:27.000000000 -0500
++++ configure
+@@ -7795,7 +7795,7 @@ EOF
+
+ fi
+
+-for ac_func in getdtablesize usleep utime waitpid wait3 chroot strdup vsnprintf daemon setenv putenv mmap getpagesize setproctitle snprintf strerror setpriority getspnam statfs statvfs strcasecmp
++for ac_func in getdtablesize usleep utime waitpid wait3 chroot strdup vsnprintf daemon setenv putenv mmap getpagesize setproctitle snprintf strerror setpriority getspnam statfs statvfs strcasecmp sync
+ do
+ as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ echo "$as_me:7801: checking for $ac_func" >&5
diff --git a/news/nntpcache/patches/patch-ac b/news/nntpcache/patches/patch-ac
new file mode 100644
index 00000000000..9619454e0f8
--- /dev/null
+++ b/news/nntpcache/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1 2005/03/07 12:04:41 tv Exp $
+
+--- config.h.in.orig 2002-04-05 10:22:45.000000000 -0500
++++ config.h.in
+@@ -164,6 +164,9 @@
+ /* Define if you have the <string.h> header file. */
+ #undef HAVE_STRING_H
+
++/* Define if you have the `sync' function. */
++#undef HAVE_SYNC
++
+ /* Define if you have the <syslog.h> header file. */
+ #undef HAVE_SYSLOG_H
+
diff --git a/news/nntpcache/patches/patch-ad b/news/nntpcache/patches/patch-ad
new file mode 100644
index 00000000000..f2d6cca87be
--- /dev/null
+++ b/news/nntpcache/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1 2005/03/07 12:04:41 tv Exp $
+
+--- src/nntpcache.c.orig 2002-04-05 13:29:58.000000000 -0500
++++ src/nntpcache.c
+@@ -404,7 +404,9 @@ EXPORT void ncExit (int code)
+ if (Stats)
+ saveStats (con->statsFile);
+ unlink (PidFile);
++#ifdef HAVE_SYNC
+ sync ();
++#endif
+ } else
+ {
+ if (Task->ti_state == nc_client)