gssproxy/Include-header-for-writev.patch

50 lines
1.3 KiB
Diff
Raw Normal View History

From 5597edf7a2289a54a1bd6a95a55422e40e9e1e6f Mon Sep 17 00:00:00 2001
2017-05-16 22:31:47 +00:00
From: Robbie Harwood <rharwood@redhat.com>
Date: Wed, 17 May 2017 12:21:37 -0400
Subject: [PATCH] Include header for writev()
2017-05-16 22:31:47 +00:00
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Merges: #186
(cherry picked from commit c8c5e8d2b2154d1006633634478a24bfa0b04b4d)
2017-05-16 22:31:47 +00:00
---
proxy/src/gp_socket.c | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
2017-05-16 22:31:47 +00:00
diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c
index 829ff21..e07789c 100644
2017-05-16 22:31:47 +00:00
--- a/proxy/src/gp_socket.c
+++ b/proxy/src/gp_socket.c
@@ -1,19 +1,22 @@
2017-05-16 22:31:47 +00:00
/* Copyright (C) 2011,2015 the GSS-PROXY contributors, see COPYING for license */
#include "config.h"
2017-05-16 22:31:47 +00:00
-#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>
2017-05-16 22:31:47 +00:00
+#include <fcntl.h>
+#include <netinet/in.h>
2017-05-16 22:31:47 +00:00
+#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 {