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

Petr Vorel pvorel@suse.cz
Wed May 6 15:49:35 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?
That's what Richard suggested.
I've sent a patch for that.

Kind regards,
Petr


More information about the ltp mailing list