summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-06-05 17:23:38 +0000
committerjoerg <joerg@pkgsrc.org>2006-06-05 17:23:38 +0000
commit667daa19d1273859d0445ad154fc65d0624297ce (patch)
treeb738c964ce23a4547b2b0abf0fef180d089a27f9 /net
parentc5ca838e268de8ecbc489e522796d9c04e318410 (diff)
downloadpkgsrc-667daa19d1273859d0445ad154fc65d0624297ce.tar.gz
Prefer NAME_MAX over MAXNAMLEN, fixes build on DragonFly.
Diffstat (limited to 'net')
-rw-r--r--net/netatalk/distinfo3
-rw-r--r--net/netatalk/patches/patch-ab36
2 files changed, 38 insertions, 1 deletions
diff --git a/net/netatalk/distinfo b/net/netatalk/distinfo
index a23b028bbda..3fbca94c749 100644
--- a/net/netatalk/distinfo
+++ b/net/netatalk/distinfo
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.21 2005/10/07 12:18:19 rillig Exp $
+$NetBSD: distinfo,v 1.22 2006/06/05 17:23:38 joerg Exp $
SHA1 (netatalk-2.0.3.tar.bz2) = ce2d5dd123467ccae72fc62ca4ee3738019455f2
RMD160 (netatalk-2.0.3.tar.bz2) = 29b763400a45797ac4a8e499d5328aa91a091c91
Size (netatalk-2.0.3.tar.bz2) = 1471804 bytes
SHA1 (patch-aa) = 4063221494dadda7a8db1ba090e601d57c200201
+SHA1 (patch-ab) = 10bf2fdd900a6c2189376757e921bb6228e0f19c
SHA1 (patch-ac) = ba559d1b957172e77ec8eb9cc5c60d2f88044ffa
SHA1 (patch-ad) = 311d00d165688d4baa1365ba6c4147bd6293f3d8
SHA1 (patch-af) = 997909d7cf444a2481693069864da9134ce413d4
diff --git a/net/netatalk/patches/patch-ab b/net/netatalk/patches/patch-ab
new file mode 100644
index 00000000000..8296330b915
--- /dev/null
+++ b/net/netatalk/patches/patch-ab
@@ -0,0 +1,36 @@
+$NetBSD: patch-ab,v 1.11 2006/06/05 17:23:38 joerg Exp $
+
+--- bin/psorder/psorder.c.orig 2006-06-05 16:54:26.000000000 +0000
++++ bin/psorder/psorder.c
+@@ -35,6 +35,7 @@
+ #include <sys/uio.h>
+ #include <sys/file.h>
+ #include <ctype.h>
++#include <limits.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif /* HAVE_FCNTL_H */
+@@ -102,7 +103,11 @@ psorder( path )
+ {
+ int tempfd;
+ int inputfd;
++#if defined(NAME_MAX)
++ char tempfile[NAME_MAX];
++#else
+ char tempfile[MAXNAMLEN];
++#endif
+
+ filesetup( path, &inputfd, tempfile, &tempfd );
+ readps( inputfd, tempfd, tempfile );
+@@ -151,7 +156,11 @@ filesetup( inputfile, infd, tfile, tfd )
+ make temporary file
+ */
+
++#if defined(NAME_MAX)
++ (void *)strncpy( tfile, template, NAME_MAX );
++#else
+ (void *)strncpy( tfile, template, MAXNAMLEN );
++#endif
+ if (( *tfd = mkstemp( tfile )) == -1 ) {
+ fprintf( stderr, "can't create temporary file %s\n", tfile );
+ filecleanup( -1, -1, "" );