changeset 695:8d7dcfd9df53

loadtools: missing #include <unistd.h> in tpinterf modules
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 11 Mar 2020 18:21:22 +0000
parents 9edb7c07bb29
children dbbafb1f33f3
files loadtools/tpinterf.c loadtools/tpinterf2.c loadtools/tpinterfb.c
diffstat 3 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/loadtools/tpinterf.c	Wed Mar 11 17:28:11 2020 +0000
+++ b/loadtools/tpinterf.c	Wed Mar 11 18:21:22 2020 +0000
@@ -1,8 +1,7 @@
 /*
  * Target program interface - this module provides some primitives
- * for communicating programmatically with loadagent and possibly
- * other target-utils.  This module will be linked by both
- * fc-loadtool and fc-chainload.
+ * for communicating programmatically with loadagent and other
+ * target-utils.  This module is linked by most loadtools programs.
  */
 
 #include <sys/types.h>
@@ -12,6 +11,7 @@
 #include <string.h>
 #include <strings.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 extern int errno;
 
--- a/loadtools/tpinterf2.c	Wed Mar 11 17:28:11 2020 +0000
+++ b/loadtools/tpinterf2.c	Wed Mar 11 18:21:22 2020 +0000
@@ -1,7 +1,7 @@
 /*
  * This module provides a more advanced target interface function
- * than tpinterf.c - programmatic capture of target responses,
- * for dumps etc.  It will be linked by fc-loadtool, but not fc-chainload.
+ * than tpinterf.c - programmatic capture of target responses.
+ * It is linked by some of our programs, but not all.
  */
 
 #include <sys/types.h>
@@ -11,6 +11,7 @@
 #include <string.h>
 #include <strings.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 extern int errno;
 
--- a/loadtools/tpinterfb.c	Wed Mar 11 17:28:11 2020 +0000
+++ b/loadtools/tpinterfb.c	Wed Mar 11 18:21:22 2020 +0000
@@ -10,6 +10,7 @@
 #include <string.h>
 #include <strings.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 extern int errno;