Compiling rxtimestamp.c generates error messages due to non-existing declaration for write() library call.
Add missing unistd.h include to provide the declaration and silence the error.
Signed-off-by: Deepa Dinamani deepa.kernel@gmail.com --- tools/testing/selftests/networking/timestamping/rxtimestamp.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/networking/timestamping/rxtimestamp.c b/tools/testing/selftests/networking/timestamping/rxtimestamp.c index dd4162fc0419..6dee9e636a95 100644 --- a/tools/testing/selftests/networking/timestamping/rxtimestamp.c +++ b/tools/testing/selftests/networking/timestamping/rxtimestamp.c @@ -5,6 +5,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h>
#include <sys/time.h> #include <sys/socket.h>