summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-07-26 21:12:07 +0200
committerCommit Bot <commit-bot@chromium.org>2020-07-28 04:36:13 +0000
commit588839c060d0e977594720bc9fc1ab054d1f5178 (patch)
tree962217b835031ae8f87d681fcbcdd3fd4d22ddd3
parentc9c14da9bbc256618d11cfccac0bf72d0b524a21 (diff)
downloadvboot-588839c060d0e977594720bc9fc1ab054d1f5178.tar.gz
host/lib/include/subprocess.h: Add `extern` to globals
This prevents linker errors regarding multiple definitions. Change-Id: I62d6132c20ca2b9620a9f3b1539a1a0109c5aa26 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2318026 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--host/lib/include/subprocess.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/include/subprocess.h b/host/lib/include/subprocess.h
index eaf75502..b24b987f 100644
--- a/host/lib/include/subprocess.h
+++ b/host/lib/include/subprocess.h
@@ -85,22 +85,22 @@ struct subprocess_target {
/**
* A convenience subprocess target which uses TARGET_NULL.
*/
-struct subprocess_target subprocess_null;
+extern struct subprocess_target subprocess_null;
/**
* A convenience subprocess target which uses TARGET_FD to STDIN_FILENO.
*/
-struct subprocess_target subprocess_stdin;
+extern struct subprocess_target subprocess_stdin;
/**
* A convenience subprocess target which uses TARGET_FD to STDOUT_FILENO.
*/
-struct subprocess_target subprocess_stdout;
+extern struct subprocess_target subprocess_stdout;
/**
* A convenience subprocess target which uses TARGET_FD to STDERR_FILENO.
*/
-struct subprocess_target subprocess_stderr;
+extern struct subprocess_target subprocess_stderr;
/**
* Call a process and run until completion.