~mcf/libtls-bearssl

99edefc48712becd341649064c3e7a0cd76739d4 — Michael Forney a month ago fce863a master
Define _GNU_SOURCE instead of _DEFAULT_SOURCE

We also need [v]asprintf for tls.c, and glibc doesn't declare these
functions without _GNU_SOURCE.

Issue reported by Issam E. Maghni.
2 files changed, 2 insertions(+), 2 deletions(-)

M .builds/debian.yml
M Makefile
M .builds/debian.yml => .builds/debian.yml +1 -1
@@ 3,4 3,4 @@ sources:
- https://git.sr.ht/~mcf/libtls-bearssl
- https://www.bearssl.org/git/BearSSL#v0.6
tasks:
- build: CFLAGS="-I $PWD/BearSSL/inc -D _GNU_SOURCE" make -C libtls-bearssl
- build: CFLAGS="-I $PWD/BearSSL/inc" make -C libtls-bearssl

M Makefile => Makefile +1 -1
@@ 8,7 8,7 @@ PREFIX?=/usr/local
INCDIR?=$(PREFIX)/include
LIBDIR?=$(PREFIX)/lib
MANDIR?=$(PREFIX)/share/man
CFLAGS+=-Wall -Wpedantic -D _DEFAULT_SOURCE -I .
CFLAGS+=-Wall -Wpedantic -D _GNU_SOURCE -I .

OBJ=\
	tls.o\