1 # $NetBSD: hacks.mk,v 1.3 2008/03/16 20:14:38 seb Exp $
3 # config.h #defines socklen_t if it is not defined, but libgcrypt does
4 # not propogate this to the installed gcrypt.h, so packages using it
7 # hack around this by using the same #define (if present) in gcrypt.h.
9 socklen
=`${GREP} '^#define socklen_t' ${WRKSRC}/config.h || ${TRUE}`; \
10 ${MV} ${WRKSRC}/src
/gcrypt.h
${WRKSRC}/src
/gcrypt.h.old
; \
11 ${SED} -e
"s,^/\* socklen_t \*/,$$socklen," \
12 ${WRKSRC}/src
/gcrypt.h.old
> ${WRKSRC}/src
/gcrypt.h