gssproxy/Include-header-for-writev-and-sort-includes.patch

45 lines
1.2 KiB
Diff
Raw Normal View History

2017-05-16 22:31:47 +00:00
From aade7877a78c662238033ff836e00e195c7b868b Mon Sep 17 00:00:00 2001
From: Robbie Harwood <rharwood@redhat.com>
Date: Tue, 16 May 2017 17:14:57 -0400
Subject: [PATCH] Include header for writev() and sort includes
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
(cherry picked from commit 8bf50e867dd09ff7e56ad2ca5620fc61f494f8b6)
---
proxy/src/gp_socket.c | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c
index 829ff21..f97e022 100644
--- a/proxy/src/gp_socket.c
+++ b/proxy/src/gp_socket.c
@@ -1,17 +1,19 @@
/* 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 <fcntl.h>
#include <netinet/in.h>
-#include "gp_proxy.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>
+
+#include "config.h"
#include "gp_creds.h"
+#include "gp_proxy.h"
#include "gp_selinux.h"
#define FRAGMENT_BIT (1 << 31)