[LTP] [PATCH 02/10] Test for vulnerability CVE-2016-7117 in recvmmsg error return path

Cyril Hrubis chrubis@suse.cz
Fri May 19 15:05:43 CEST 2017


Hi!
> +AC_DEFUN([LTP_CHECK_MMSGHDR],[
> +AC_CHECK_TYPES([struct mmsghdr],,,[
> +#include <sys/types.h>
> +#define __USE_GNU

Don't do that, the double underscore one is library internal macro. The
correct way is to define _GNU_SOURCE before you include any glibc
header.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list