Browse Source

Merge branch 'upstream-kwsys' into update-kwsys

Brad King 12 years ago
parent
commit
3ed2d03ee9
2 changed files with 7 additions and 1 deletions
  1. 6 0
      Source/kwsys/ProcessUNIX.c
  2. 1 1
      Source/kwsys/SystemInformation.cxx

+ 6 - 0
Source/kwsys/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 <stddef.h>    /* ptrdiff_t */
 #include <stdio.h>     /* snprintf */
 #include <stdlib.h>    /* malloc, free */

+ 1 - 1
Source/kwsys/SystemInformation.cxx

@@ -130,7 +130,7 @@ typedef int siginfo_t;
 #   define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN
 #  endif
 # endif
-# if defined(__GNUG__)
+# if defined(__GNUC__)
 #  include <execinfo.h>
 #  if !(defined(__LSB_VERSION__) && __LSB_VERSION__ < 41)
 #   define KWSYS_SYSTEMINFORMATION_HAVE_BACKTRACE