From 83a9f09d184c89c79c0d8ec52868ad68b0604d5d Mon Sep 17 00:00:00 2001 From: KWSys Robot Date: Thu, 21 Mar 2013 14:49:23 -0400 Subject: [PATCH] KWSys 2013-03-21 (2d263bc3) Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 2d263bc3 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 5c34ed2e..2d263bc3 Paul Kunysch (1): 2d263bc3 Process: Increase FD_SETSIZE on Cygwin Sean McBride (1): 13f5badd SystemInformation: Replace __GNUG__ with __GNUC__ Change-Id: I2d29f6d7e9bbc34f7a9b40394a7ee05f3c537396 --- ProcessUNIX.c | 6 ++++++ SystemInformation.cxx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ProcessUNIX.c b/ProcessUNIX.c index fc9e8bf67..b9af2f1f5 100644 --- a/ProcessUNIX.c +++ b/ProcessUNIX.c @@ -47,6 +47,12 @@ do. */ +#if defined(__CYGWIN__) +/* Increase the file descriptor limit for select() before including + related system headers. (Default: 64) */ +# define FD_SETSIZE 16384 +#endif + #include /* ptrdiff_t */ #include /* snprintf */ #include /* malloc, free */ diff --git a/SystemInformation.cxx b/SystemInformation.cxx index f057e0fcb..9e2a93d7c 100644 --- a/SystemInformation.cxx +++ b/SystemInformation.cxx @@ -130,7 +130,7 @@ typedef int siginfo_t; # define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN # endif # endif -# if defined(__GNUG__) +# if defined(__GNUC__) # include # if !(defined(__LSB_VERSION__) && __LSB_VERSION__ < 41) # define KWSYS_SYSTEMINFORMATION_HAVE_BACKTRACE