HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/math/openmesh/files/patch-src_OpenMesh_Apps_Decimating_decimaterviewer.cc
--- src/OpenMesh/Apps/Decimating/decimaterviewer.cc.orig	2020-03-12 13:55:53 UTC
+++ src/OpenMesh/Apps/Decimating/decimaterviewer.cc
@@ -44,6 +44,9 @@
 #ifdef _MSC_VER
 #  pragma warning(disable: 4267 4311)
 #endif
+#if defined(__FreeBSD__)
+#include <unistd.h>
+#endif
 
 #include <iostream>
 #include <fstream>