From 15cb5ab075db72a5e4cfc992a6afc1937ee442fc Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 16 May 2022 12:14:13 +0100 Subject: [PATCH] Fix Windows: include needed for getpid() --- src/Viewer/fg_os_osgviewer.cxx | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 src/Viewer/fg_os_osgviewer.cxx diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx old mode 100644 new mode 100755 index cc0479c86..049cf9e50 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -65,6 +65,10 @@ # include #endif +#if defined(SG_WINDOWS) +#include // _getpid() +#endif + // Static linking of OSG needs special macros #ifdef OSG_LIBRARY_STATIC #include