From 639ff12af754d024a562925a52406ace0d3c673b Mon Sep 17 00:00:00 2001 From: magenbluten Date: Tue, 16 Jun 2020 16:56:09 +0200 Subject: Add NetBSD compatibility --- libbutl/fdstream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbutl/fdstream.cxx') 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)) -- cgit v1.1