Files
oasis-linux-mirror/pkg/sshfs/patch/0006-Add-missing-includes.patch
2017-07-10 10:34:19 -07:00

35 lines
729 B
Diff

From 82b0a628df4a8190fc7db8342f8360f6da8c7067 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sun, 5 Jun 2016 18:21:02 -0700
Subject: [PATCH] Add missing includes
stddef.h for offsetof
sys/param.h for MIN
---
sshfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sshfs.c b/sshfs.c
index 2e7429b..04f1892 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -19,6 +19,7 @@
#endif
#include <assert.h>
#include <stdbool.h>
+#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -39,6 +40,7 @@
#include <sys/socket.h>
#include <sys/utsname.h>
#include <sys/mman.h>
+#include <sys/param.h>
#include <sys/poll.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
--
2.13.2