[LTP] [PATCH v4 1/2] pty04: Use guarded buffers for transmission

Cyril Hrubis chrubis@suse.cz
Wed May 6 14:49:10 CEST 2020


Hi!
> -#if defined(HAVE_LINUX_IF_PACKET_H) && defined(HAVE_LINUX_IF_ETHER_H)
> +#include <linux/version.h>
> +
> +#if defined(HAVE_LINUX_IF_PACKET_H) && defined(HAVE_LINUX_IF_ETHER_H) \
> +       && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)

Wouldn't it be just easier to define the structure in the test instead?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list