aboutsummaryrefslogtreecommitdiff
path: root/libbutl/fdstream.cxx
diff options
context:
space:
mode:
authormagenbluten <mb@64k.by>2020-06-16 16:56:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-18 12:53:01 +0200
commit639ff12af754d024a562925a52406ace0d3c673b (patch)
tree8eb6db32cb99a6ab659440c5bb5e3f66ad86e34b /libbutl/fdstream.cxx
parente1da4d682173d6adbc0e5c99ec1b3c8c9a948957 (diff)
Add NetBSD compatibility
Diffstat (limited to 'libbutl/fdstream.cxx')
-rw-r--r--libbutl/fdstream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbutl/fdstream.cxx b/libbutl/fdstream.cxx
index 54f3e9e..e108df5 100644
--- a/libbutl/fdstream.cxx
+++ b/libbutl/fdstream.cxx
@@ -1047,7 +1047,7 @@ namespace butl
// which will cause all kinds of problems upstream (e.g., cpfile()). So we
// detect and diagnose this.
//
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
{
struct stat s;
if (stat (f, &s) == 0 && S_ISDIR (s.st_mode))