diff options
author | John Marino <marino@FreeBSD.org> | 2015-03-26 23:48:12 +0800 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2015-03-26 23:48:12 +0800 |
commit | 0c5ab989b35770d1724c87fe95df140c921f6e51 (patch) | |
tree | 3b53e23f3d6982b9ebe2153660108ed03f634047 /x11-toolkits | |
parent | a18c31c3a1c0820796159c1ab069346d8ad89bb0 (diff) | |
download | freebsd-ports-gnome-0c5ab989b35770d1724c87fe95df140c921f6e51.tar.gz freebsd-ports-gnome-0c5ab989b35770d1724c87fe95df140c921f6e51.tar.zst freebsd-ports-gnome-0c5ab989b35770d1724c87fe95df140c921f6e51.zip |
x11-toolkits/xforms: Add DragonFly support
Bring in fix from dports (port is not maintained)
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/xforms/files/patch-lib_listdir.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/x11-toolkits/xforms/files/patch-lib_listdir.c b/x11-toolkits/xforms/files/patch-lib_listdir.c new file mode 100644 index 000000000000..8cc06157a82b --- /dev/null +++ b/x11-toolkits/xforms/files/patch-lib_listdir.c @@ -0,0 +1,14 @@ +--- lib/listdir.c.orig 2014-06-28 20:34:29 UTC ++++ lib/listdir.c +@@ -970,7 +970,11 @@ tc_scandir( const char * dirname, + #if defined __VMS && __VMS_VER < 70000000 || defined opennt || defined __CYGWIN__ + total = dname_is_1 ? strlen( dentry->d_name ) : sizeof *dentry; + #else ++# ifdef __DragonFly__ ++ total = dname_is_1 ? _DIRENT_RECLEN(dentry->d_namlen) : sizeof *dentry; ++# else + total = dname_is_1 ? dentry->d_reclen : sizeof *dentry; ++# endif + #endif + memcpy( head[ n ] = fl_malloc( total ), dentry, total ); + } |