Fix build for DragonFlyBSD dirent(3) that does not have a dirent.d_reclen entry. Index: distinfo =================================================================== RCS file: /cvsroot/pkgsrc/textproc/the_silver_searcher/distinfo,v retrieving revision 1.12 diff -u -p -r1.12 distinfo --- distinfo 1 Dec 2016 09:28:34 -0000 1.12 +++ distinfo 1 Dec 2016 10:14:38 -0000 @@ -4,3 +4,4 @@ SHA1 (the_silver_searcher-1.0.1.tar.gz) RMD160 (the_silver_searcher-1.0.1.tar.gz) = 2e4b3dfa430b3036a9dfffe11f60e4c50ec1486d SHA512 (the_silver_searcher-1.0.1.tar.gz) = f8c86a6eb5017fac61d0ff6726d10b1eff0cd75ad0fee99f9d17f35ad3cad80aceb2101a5caa26f2cacbd8618b60af005966bf2c39bd1f0fc52d6fafb5eed778 Size (the_silver_searcher-1.0.1.tar.gz) = 183173 bytes +SHA1 (patch-src_scandir.c) = 41c0af602ef478db39bd48315b0fb1a644a9db91 Index: patches/patch-src_scandir.c =================================================================== RCS file: patches/patch-src_scandir.c diff -N patches/patch-src_scandir.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_scandir.c 1 Dec 2016 10:14:38 -0000 @@ -0,0 +1,24 @@ +$NetBSD$ + +DragonFlyBSD dirent(3) does not have dirent.d_reclen entry. + +--- src/scandir.c.orig 2016-05-10 17:39:42.000000000 +0000 ++++ src/scandir.c +@@ -38,7 +38,7 @@ int ag_scandir(const char *dirname, + } + } + +-#if defined(__MINGW32__) || defined(__CYGWIN__) ++#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DragonFly__) + d = malloc(sizeof(struct dirent)); + #else + d = malloc(entry->d_reclen); +@@ -47,7 +47,7 @@ int ag_scandir(const char *dirname, + if (d == NULL) { + goto fail; + } +-#if defined(__MINGW32__) || defined(__CYGWIN__) ++#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DragonFly__) + memcpy(d, entry, sizeof(struct dirent)); + #else + memcpy(d, entry, entry->d_reclen);