Files
oasis-linux-mirror/pkg/sshfs/patch/0006-Add-missing-includes.patch
2019-11-04 17:42:19 -08:00

35 lines
725 B
Diff

From 7327c2ae180ccdafb879f4181e6a6f636c23816d 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 17f7d6a..42ff750 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 <poll.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
--
2.24.0