'gtk2_ardour' - Make sure that 'getpid()' can be found when building with MSVC
authorJohn Emmas <johne53@tiscali.co.uk>
Thu, 3 Oct 2013 08:57:25 +0000 (09:57 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Thu, 3 Oct 2013 08:57:25 +0000 (09:57 +0100)
gtk2_ardour/nsmclient.cc

index 76e18bc6292b71e47bdecb67dc6b9df6bdc3265a..94c3e8570e978c835fbd0e47bad5d1accd546000 100644 (file)
 #include <unistd.h>
 #include <stdlib.h>
 
+#ifndef COMPILER_MSVC
 #pragma GCC diagnostic ignored "-Wunused-parameter"
+#else
+#include <process.h>  // Needed for 'getpid()'
+#endif
 
 namespace NSM
 {