title: Cannot compile C code with #include <sys/times.h> in Cygwin
body: <p>I was trying to install/compile libraries such as igraph and SNAP in Windows 7 using Cygwin (and also tried MinGW-MSYS) and I ran into some problems. </p>
  
  <p>I think I have narrowed down the problem to this error given by <code>./configure</code>:</p>
  
  <pre><code>checking sys/times.h usability... no
  checking sys/times.h presence... no
  checking for sys/times.h... no
  </code></pre>
  
  <p>In Cygwin, <code>/usr/include/sys/times.h</code> actually do exists. I googled about this for MinGW and it seems that sys/times.h is not available for MinGW because "<em>the POSIX/BSD "times" function is not part of the ANSI standard and does not exist under Mingw32 runtime</em>".</p>
  
  <p>As an experiment, I tried compiling this C code in Cygwin using gcc:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;sys/times.h&gt;
  
  int main (void) 
  {
  
        return 0;
  }
  </code></pre>
  
  <p>This does not compile, with the error <code>sys/times.h no such file or directory</code>. This happens even when I change the include to <code>&lt;/usr/include/sys/times.h&gt;</code> or <code>&lt;usr/include/sys/times.h&gt;</code>. In the Cygwin command promot <code>/usr/include/sys/times.h</code> work correctly.</p>
  
  <p><strong>Question</strong></p>
  
  <p>How do I get sys/times.h usability and presence? Is there a package or library I can install?</p>