Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-distro / recipes-security / gssproxy / files / Include-header-for-writev.patch
1 From 26b5ff6b802b6a24b23ea774b0305f6f2031d4da Mon Sep 17 00:00:00 2001
2 From: Robbie Harwood <rharwood@redhat.com>
3 Date: Wed, 17 May 2017 12:21:37 -0400
4 Subject: [PATCH] Include header for writev()
5
6 Signed-off-by: Robbie Harwood <rharwood@redhat.com>
7 Reviewed-by: Simo Sorce <simo@redhat.com>
8 Merges: #186
9 (cherry picked from commit c8c5e8d2b2154d1006633634478a24bfa0b04b4d)
10 ---
11  proxy/src/gp_socket.c | 21 ++++++++++++---------
12  1 file changed, 12 insertions(+), 9 deletions(-)
13
14 diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c
15 index 17ecf7c..29b6a44 100644
16 --- a/proxy/src/gp_socket.c
17 +++ b/proxy/src/gp_socket.c
18 @@ -1,19 +1,22 @@
19  /* Copyright (C) 2011,2015 the GSS-PROXY contributors, see COPYING for license */
20  
21  #include "config.h"
22 -#include <stdlib.h>
23 -#include <unistd.h>
24 -#include <fcntl.h>
25 -#include <sys/types.h>
26 -#include <sys/stat.h>
27 -#include <sys/socket.h>
28 -#include <sys/un.h>
29 -#include <errno.h>
30 -#include <netinet/in.h>
31 +
32  #include "gp_proxy.h"
33  #include "gp_creds.h"
34  #include "gp_selinux.h"
35  
36 +#include <errno.h>
37 +#include <fcntl.h>
38 +#include <netinet/in.h>
39 +#include <stdlib.h>
40 +#include <sys/socket.h>
41 +#include <sys/stat.h>
42 +#include <sys/types.h>
43 +#include <sys/uio.h>
44 +#include <sys/un.h>
45 +#include <unistd.h>
46 +
47  #define FRAGMENT_BIT (1 << 31)
48  
49  struct unix_sock_conn {