Fix gcc5 build for DragonFly BSD.

PR:		197561
Submitted by:	marino
This commit is contained in:
Cy Schubert 2015-02-12 21:15:15 +00:00
parent 5eb4ef2599
commit 640b0b330c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378897
2 changed files with 11 additions and 1 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= krb5
PORTVERSION= 1.13
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/${PORTNAME}/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-signed

View file

@ -0,0 +1,10 @@
--- lib/krb5/ccache/cc_file.c.orig 2014-10-15 16:55:10.000000000 -0700
+++ lib/krb5/ccache/cc_file.c 2015-02-12 13:00:31.967166267 -0800
@@ -136,6 +136,7 @@
fcc_data *data = id->data;
struct stat sb;
+ *size_out = 0;
k5_cc_mutex_assert_locked(context, &data->lock);
if (fstat(data->fd, &sb) == -1)
return interpret_errno(context, errno);