]> git.ipfire.org Git - thirdparty/lldpd.git/commit
asprintf: globally define _GNU_SOURCE
authorVincent Bernat <vbe@deezer.com>
Tue, 1 Apr 2014 16:29:07 +0000 (18:29 +0200)
committerVincent Bernat <vbe@deezer.com>
Tue, 1 Apr 2014 16:29:07 +0000 (18:29 +0200)
commit46673df2cbbe93fc38c3c08ee27cd5ded7dd6eef
tree198406d74e35634885e8ea906911d170069814d6
parent39f940da4592e22bee45eb67005d5387c0b4bcd6
asprintf: globally define _GNU_SOURCE

And also provide a replacement for asprintf if it is not available. I
would prefer to not use _GNU_SOURCE everywhere but it seems cleaner than
putting it at the top of random files. Ideally, I should wrap every
function in a separate file to just use _GNU_SOURCE for those
functions. There are `asprintf()` and `setres[ug]id()`.
13 files changed:
configure.ac
src/client/lldpcli.c
src/compat/asprintf.c [new file with mode: 0644]
src/compat/compat.h
src/daemon/lldpd.h
src/lib/fixedpoint.c
src/log.c
src/marshal.c
tests/check_cdp.c
tests/check_edp.c
tests/check_lldp.c
tests/check_sonmp.c
tests/common.c