diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-11 13:55:03 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-11 13:55:03 -0400 |
commit | 058ebf98b928f735ac2dbd5026a4dcf3fba3e67b (patch) | |
tree | 2a3da757dbfe5e4ffda10704ef178455c2231034 | |
parent | ef9ed302e3365aee9207054dd9e4382fb49adc8d (diff) |
Disable increasing open file limit on windows
-rw-r--r-- | libs/ardour/globals.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 4c91956ffd..cc427f7428 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -25,7 +25,9 @@ #include <sys/stat.h> #include <sys/types.h> #include <sys/time.h> +#ifndef WIN32 #include <sys/resource.h> +#endif #include <unistd.h> #include <fcntl.h> #include <errno.h> @@ -193,6 +195,7 @@ setup_hardware_optimization (bool try_optimization) static void lotsa_files_please () { +#ifndef WIN32 struct rlimit rl; if (getrlimit (RLIMIT_NOFILE, &rl) == 0) { @@ -213,6 +216,7 @@ lotsa_files_please () } else { error << string_compose (_("Could not get system open files limit (%1)"), strerror (errno)) << endmsg; } +#endif } int |