Skip to contentSkip to conversation

lapi/name_to_handle.h: fix include

PATCH In review Edward Liaw via ltp 2 participants 2 messages Sep 1, 2022 – Sep 2, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lapi/name_to_handle.h: fix include

Import tst_test.h before lapi/syscalls.h so that the compiler defines the correct symbols to use.

---
 include/lapi/name_to_handle_at.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/lapi/name_to_handle_at.h +1 -1
index bdc59b549..7c76438ec 100644
@@ -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,
Signature · 5 lines
2.37.2.789.g6183377224-goog


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw
Quoted 3 lines

Import tst_test.h before lapi/syscalls.h so that the compiler defines the correct symbols to use.

Thanks for the fix, applied.

Signature · 2 lines
Regards,
Li Wang
Signature · 2 lines
-- 
Mailing list info: https://lists.linux.it/listinfo/ltp