A couple of minor changes when #including <utime.h>
authorJohn Emmas <johne53@tiscali.co.uk>
Sat, 2 Dec 2017 11:46:20 +0000 (11:46 +0000)
committerJohn Emmas <johne53@tiscali.co.uk>
Sat, 2 Dec 2017 11:46:20 +0000 (11:46 +0000)
libs/ardour/vst_info_file.cc
libs/fst/scanner.cc

index df28cbc02ea93c089d5161f90caca8d624693712..42e8e72447cf26dcf6bf0047eec6b98d00c2aceb 100644 (file)
 #include <cassert>
 
 #include <sys/types.h>
-#include <fcntl.h>
-#include <utime.h>
+
+#ifdef COMPILER_MSVC
+#include <sys/utime.h>
+#else
 #include <unistd.h>
+#include <utime.h>
+#endif
+
+#include <fcntl.h>
 #include <errno.h>
 
 #include <stdlib.h>
index 084bcbe0a88c94baa9dc520becbd2bc72074c055..9bf714ff69ac28f8ba773ff2b1565a7194fc7256 100644 (file)
@@ -2,7 +2,12 @@
 #include <stdlib.h>
 #include <string.h>
 #include <vector>
+
+#ifdef COMPILER_MSVC
+#include <sys/utime.h>
+#else
 #include <utime.h>
+#endif
 
 #include <glib.h>