[LTP] [PATCH v1] lapi/name_to_handle.h: fix include
Edward Liaw
edliaw@google.com
Thu Sep 1 22:33:06 CEST 2022
Import tst_test.h before lapi/syscalls.h so that the compiler defines
the correct symbols to use.
Signed-off-by: Edward Liaw <edliaw@google.com>
---
include/lapi/name_to_handle_at.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/lapi/name_to_handle_at.h b/include/lapi/name_to_handle_at.h
index bdc59b549..7c76438ec 100644
--- a/include/lapi/name_to_handle_at.h
+++ b/include/lapi/name_to_handle_at.h
@@ -9,10 +9,10 @@
#include <sys/syscall.h>
#include "config.h"
+#include "tst_test.h"
#include "lapi/syscalls.h"
#include "lapi/fcntl.h"
#include "tst_buffers.h"
-#include "tst_test.h"
#ifndef HAVE_NAME_TO_HANDLE_AT
static inline int name_to_handle_at(int dfd, const char *pathname,
--
2.37.2.789.g6183377224-goog
More information about the ltp
mailing list