summaryrefslogtreecommitdiff
path: root/package/gnutls/patches/0001-uclibc.patch
AgeCommit message (Collapse)Author
2021-10-30gnutls: Fix build with uclibc-ngPhil Sutter
Recent gnutls update introduced "gnulib module fopen" (gl/fopen.c) which tries to get fopen() declaration from stdio.h by defining __need_FILE before including the header. While this seems unnecessary for the purpose (alegedly __need_FILE is used by headers including stdio.h to get the FILE declaration while avoiding namespace pollution), uClibc-ng's stdio.h behaves unexpected if __need_FILE is defined: 1) features.h is not included, therefore __BEGIN_NAMESPACE_STD (and likely more) is not known later on 2) it declares *only* FILE, nothing else To avoid these problems, don't define __need_FILE in gnutls and pray this works with other libc's as well. Actually one should fix uClibc-ng instead. Signed-off-by: Phil Sutter <phil@nwl.cc>