50 lines
1.3 KiB
Diff
50 lines
1.3 KiB
Diff
From 5597edf7a2289a54a1bd6a95a55422e40e9e1e6f Mon Sep 17 00:00:00 2001
|
|
From: Robbie Harwood <rharwood@redhat.com>
|
|
Date: Wed, 17 May 2017 12:21:37 -0400
|
|
Subject: [PATCH] Include header for writev()
|
|
|
|
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
|
Reviewed-by: Simo Sorce <simo@redhat.com>
|
|
Merges: #186
|
|
(cherry picked from commit c8c5e8d2b2154d1006633634478a24bfa0b04b4d)
|
|
---
|
|
proxy/src/gp_socket.c | 21 ++++++++++++---------
|
|
1 file changed, 12 insertions(+), 9 deletions(-)
|
|
|
|
diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c
|
|
index 829ff21..e07789c 100644
|
|
--- a/proxy/src/gp_socket.c
|
|
+++ b/proxy/src/gp_socket.c
|
|
@@ -1,19 +1,22 @@
|
|
/* Copyright (C) 2011,2015 the GSS-PROXY contributors, see COPYING for license */
|
|
|
|
#include "config.h"
|
|
-#include <stdlib.h>
|
|
-#include <unistd.h>
|
|
-#include <fcntl.h>
|
|
-#include <sys/types.h>
|
|
-#include <sys/stat.h>
|
|
-#include <sys/socket.h>
|
|
-#include <sys/un.h>
|
|
-#include <errno.h>
|
|
-#include <netinet/in.h>
|
|
+
|
|
#include "gp_proxy.h"
|
|
#include "gp_creds.h"
|
|
#include "gp_selinux.h"
|
|
|
|
+#include <errno.h>
|
|
+#include <fcntl.h>
|
|
+#include <netinet/in.h>
|
|
+#include <stdlib.h>
|
|
+#include <sys/socket.h>
|
|
+#include <sys/stat.h>
|
|
+#include <sys/types.h>
|
|
+#include <sys/uio.h>
|
|
+#include <sys/un.h>
|
|
+#include <unistd.h>
|
|
+
|
|
#define FRAGMENT_BIT (1 << 31)
|
|
|
|
struct unix_sock_conn {
|