title: timespec not found in time.h
body: <p>I am having to rewrite an application from C++ to C. I am using gcc and Eclipse on Ubuntu 12.04. In doing so I have come across this error</p>
  <pre><code>../src/TTNoddy.c: In function ‘main’:
  ../src/TTNoddy.c:16:2: error: unknown type name ‘timespec’
  </code></pre>
  <p>Here is my code snippet that reproduces the problem</p>
  <pre><code>#include &lt;time.h&gt;
  
  int main(void) {
  
      timespec TS;
      TS.tv_nsec = 1;
  
      return 0;
  }
  </code></pre>
  <p>I am confused here - I am a C++ coder and never written a pure C application in my life, but the man page for <code>clock_gettime</code> clearly indicates that <code>timespec</code> is found in the <code>time.h</code> header file which I am including here. What have I missed?</p>