ports/net/grive2/files/patch-libgrive_src_util_File.cc
Carlos J. Puga Medina 58195fe1bb - Unbreak build with Clang 6
- Rework patches to push the code upstream
- Fix WWW in pkg-descr
- Pet portlint

Reported by:	pkg-fallout
2018-01-16 00:42:00 +00:00

13 lines
291 B
C++

--- libgrive/src/util/File.cc.orig 2016-01-14 20:51:31 UTC
+++ libgrive/src/util/File.cc
@@ -33,6 +33,10 @@
#include <sys/types.h>
#include <fcntl.h>
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
+#include <unistd.h>
+#endif
+
#ifdef WIN32
#include <io.h>
typedef int ssize_t ;