From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Fri, 28 Aug 2020 12:33:51 +0200 Subject: [LTP] [PATCH] tst_af_alg: fix build error when ALG_SET_AEAD_ASSOCLEN undefined In-Reply-To: <373798f7-d1e4-330a-0911-efcd6f1d1480@cn.fujitsu.com> References: <1598005119-2147-1-git-send-email-xuyang2018.jy@cn.fujitsu.com> <20200828084818.GB1648@dell5510> <373798f7-d1e4-330a-0911-efcd6f1d1480@cn.fujitsu.com> Message-ID: <20200828103351.GA12046@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Xu, > Hi Petr > > Hi, > > ... > > > --- a/configure.ac > > > +++ b/configure.ac > > > @@ -193,6 +193,12 @@ AC_CHECK_TYPES([struct xt_entry_match, struct xt_entry_target],,,[ > > > #include > > > ]) > > > +AC_CHECK_TYPES([struct sockaddr_alg, struct af_alg_iv],,,[ > > > +#ifdef HAVE_LINUX_IF_ALG_H > > > +# include > > > +#endif > > IMHO does not need to be guarded. > > (as the definitions are in it it either fail because missing or fail because not > > loaded) > > > +]) > Yes. Do you merge this patch with deleting this ifdef? Or I sent a v2 patch > for this. > Also, I think you can remove" #ifdef HAVE_LINUX_IF_PACKET_H" pair in > configure.ac > AC_CHECK_TYPES([struct tpacket_req3],,,[ > #ifdef HAVE_LINUX_IF_PACKET_H > # include > #endif > ]) I'll fix it and merge. Kind regards, Petr > Best Regards > Yang Xu