pkgsrc/meta-pkgs/boost/patches/patch-libs_filesystem_src_unique_path.cpp
jperkin a64920e11f Include unistd.h for read() and close()
Fixes build on at least Solaris.
2012-08-02 12:08:41 +00:00

14 lines
440 B
C++

$NetBSD: patch-libs_filesystem_src_unique_path.cpp,v 1.1 2012/08/02 12:08:41 jperkin Exp $
Include unistd.h for read() and close()
--- libs/filesystem/src/unique_path.cpp.orig Thu Aug 2 12:04:47 2012
+++ libs/filesystem/src/unique_path.cpp Thu Aug 2 12:04:55 2012
@@ -21,6 +21,7 @@
# ifdef BOOST_POSIX_API
# include <fcntl.h>
+# include <unistd.h>
# else // BOOST_WINDOWS_API
# include <windows.h>
# include <wincrypt.h>