pkgsrc/meta-pkgs/boost/patches/patch-libs_filesystem_src_unique_path.cpp

15 lines
440 B
C++
Raw Normal View History

$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>