fix generic GUI for AU.
[ardour.git] / libs / pbd / system_exec.cc
index 123fb909ad4f971ae4a2960e637fb7429bac6982..60e73badfcf19eb567ebe72f91a2a63253608819 100644 (file)
@@ -55,7 +55,10 @@ using namespace std;
 using namespace PBD;
 
 static void * interposer_thread (void *arg);
+
+#ifndef PLATFORM_WINDOWS /* POSIX Process only */
 static void close_fd (int& fd) { if (fd >= 0) ::close (fd); fd = -1; }
+#endif
 
 #if (!defined PLATFORM_WINDOWS && defined NO_VFORK)
 /*