diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2019-02-02 16:34:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-03 20:17:30 +0100 |
commit | a9bcfd1d176eb2109f74e1e4eeabdedf22321003 (patch) | |
tree | 4240aa227c923d927cdf5b8fcc038f9e1fa97c03 | |
parent | cxgb4/cxgb4vf: Program hash region for {t4/t4vf}_change_mac() (diff) | |
download | linux-a9bcfd1d176eb2109f74e1e4eeabdedf22321003.tar.xz linux-a9bcfd1d176eb2109f74e1e4eeabdedf22321003.zip |
selftests: add missing include unistd
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>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | tools/testing/selftests/networking/timestamping/rxtimestamp.c | 1 |
1 files changed, 1 insertions, 0 deletions
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> |