<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Xiao,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The patch itself looks good, but I remember we were planning to drop support for the old distro e.g CentOS6. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The previous discussion here:</div><div class="gmail_default" style="font-size:small"><a href="http://lists.linux.it/pipermail/ltp/2020-March/016164.html">http://lists.linux.it/pipermail/ltp/2020-March/016164.html</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 26, 2020 at 9:49 AM Xiao Yang <<a href="mailto:yangx.jy@cn.fujitsu.com">yangx.jy@cn.fujitsu.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From travis-ci, compiling name_to_handle_at/open_by_handle_at tests<br>
failed on centos6 due to undefined AT_EMPTY_PATH and MAX_HANDLE_SZ.<br>
<br>
Signed-off-by: Xiao Yang <<a href="mailto:yangx.jy@cn.fujitsu.com" target="_blank">yangx.jy@cn.fujitsu.com</a>><br>
---<br>
include/lapi/fcntl.h | 4 ++++<br>
include/lapi/name_to_handle_at.h | 1 +<br>
2 files changed, 5 insertions(+)<br>
<br>
diff --git a/include/lapi/fcntl.h b/include/lapi/fcntl.h<br>
index 576a18daf..d6665915f 100644<br>
--- a/include/lapi/fcntl.h<br>
+++ b/include/lapi/fcntl.h<br>
@@ -136,4 +136,8 @@<br>
# define SPLICE_F_NONBLOCK 2<br>
#endif<br>
<br>
+#ifndef MAX_HANDLE_SZ<br>
+# define MAX_HANDLE_SZ 128<br>
+#endif<br>
+<br>
#endif /* __LAPI_FCNTL_H__ */<br>
diff --git a/include/lapi/name_to_handle_at.h b/include/lapi/name_to_handle_at.h<br>
index c0759c463..3484133d1 100644<br>
--- a/include/lapi/name_to_handle_at.h<br>
+++ b/include/lapi/name_to_handle_at.h<br>
@@ -10,6 +10,7 @@<br>
#include <sys/syscall.h><br>
#include "config.h"<br>
#include "lapi/syscalls.h"<br>
+#include "lapi/fcntl.h"<br>
#include "tst_buffers.h"<br>
#include "tst_test.h"<br>
<br>
-- <br>
2.25.1<br>
<br>
<br>
<br>
<br>
-- <br>
Mailing list info: <a href="https://lists.linux.it/listinfo/ltp" rel="noreferrer" target="_blank">https://lists.linux.it/listinfo/ltp</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>