--- a/tests/utils/testapp/gen-ust-events-ns/tp.h
+++ b/tests/utils/testapp/gen-ust-events-ns/tp.h
@@ -12,6 +12,7 @@
 #define _TRACEPOINT_TP_H
 
 #include <lttng/tracepoint.h>
+#include <sys/types.h>
 
 TRACEPOINT_EVENT(tp, tptest,
 	TP_ARGS(ino_t, ns_ino),
