summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2019-10-15 14:28:48 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-22 00:09:26 +0000
commite09ac979c54e7a1bac69652ad80c8428477381d8 (patch)
tree1710bb2d3f482ce3ccbbafb01ef8e4672c9eb7af
parentb05e3a5035341a208b31d59328a88ca01dd8f55f (diff)
downloadcrosvm-e09ac979c54e7a1bac69652ad80c8428477381d8.tar
crosvm-e09ac979c54e7a1bac69652ad80c8428477381d8.tar.gz
crosvm-e09ac979c54e7a1bac69652ad80c8428477381d8.tar.bz2
crosvm-e09ac979c54e7a1bac69652ad80c8428477381d8.tar.lz
crosvm-e09ac979c54e7a1bac69652ad80c8428477381d8.tar.xz
crosvm-e09ac979c54e7a1bac69652ad80c8428477381d8.tar.zst
crosvm-e09ac979c54e7a1bac69652ad80c8428477381d8.zip
plugin: add missing #include <string.h> in test
Fixes warnings during test build:

  <stdin>: In function 'main':
  <stdin>:52:17: warning: implicit declaration of function 'strerror'
  [-Wimplicit-function-declaration]
  <stdin>:70:9: warning: implicit declaration of function 'memcmp'
  [-Wimplicit-function-declaration]

BUG=None
TEST=docker/wrapped_smoke_test.sh

Change-Id: Ibec87db4ca289bec9b1a2c7080fdefebb6e86158
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1863822
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r--tests/plugin_net_config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/plugin_net_config.c b/tests/plugin_net_config.c
index f11fa10..c064c53 100644
--- a/tests/plugin_net_config.c
+++ b/tests/plugin_net_config.c
@@ -12,6 +12,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 
 #include "crosvm.h"