diff mbox

[v2,4/5] tools/blktap2: Fix missing header file

Message ID 1482263220-3233-5-git-send-email-alistair.francis@xilinx.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alistair Francis Dec. 20, 2016, 7:46 p.m. UTC
To avoid build errors relating to missing delcarations of ssize_t add
the appripriote header file to atomic.h.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
---
 tools/blktap2/include/atomicio.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Konrad Rzeszutek Wilk Dec. 20, 2016, 7:52 p.m. UTC | #1
On Tue, Dec 20, 2016 at 11:46:59AM -0800, Alistair Francis wrote:
> To avoid build errors relating to missing delcarations of ssize_t add
> the appripriote header file to atomic.h.

appropiate.

> 
> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
> ---
>  tools/blktap2/include/atomicio.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/blktap2/include/atomicio.h b/tools/blktap2/include/atomicio.h
> index 7eccf20..5a1120e 100644
> --- a/tools/blktap2/include/atomicio.h
> +++ b/tools/blktap2/include/atomicio.h
> @@ -25,6 +25,8 @@
>   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>   */
>  
> +#include <sys/types.h>
> +
>  /*
>   * Ensure all of data on socket comes through. f==read || f==vwrite
>   */
> -- 
> 2.7.4
>
Douglas Goldstein Dec. 20, 2016, 7:53 p.m. UTC | #2
On 12/20/16 1:46 PM, Alistair Francis wrote:
> To avoid build errors relating to missing delcarations of ssize_t add

declarations

> the appripriote header file to atomic.h.

appropriate

> 
> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
> ---
>  tools/blktap2/include/atomicio.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/blktap2/include/atomicio.h b/tools/blktap2/include/atomicio.h
> index 7eccf20..5a1120e 100644
> --- a/tools/blktap2/include/atomicio.h
> +++ b/tools/blktap2/include/atomicio.h
> @@ -25,6 +25,8 @@
>   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>   */
>  
> +#include <sys/types.h>
> +
>  /*
>   * Ensure all of data on socket comes through. f==read || f==vwrite
>   */
> 

Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
diff mbox

Patch

diff --git a/tools/blktap2/include/atomicio.h b/tools/blktap2/include/atomicio.h
index 7eccf20..5a1120e 100644
--- a/tools/blktap2/include/atomicio.h
+++ b/tools/blktap2/include/atomicio.h
@@ -25,6 +25,8 @@ 
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <sys/types.h>
+
 /*
  * Ensure all of data on socket comes through. f==read || f==vwrite
  */