title: redefinition of 'struct timeval' in several headers
body: <p>I have several issues to compile a C program to stream sound from Intel Edison to devices (iOS and Android).</p>
  
  <p>I made a C program :
  I use alsa/asoundlib.h and pthread.h in my program I don't include sys/time.h because ALSA does not allow this.</p>
  
  <p>I use lot of timeval in my program, when i compile it on my computer i'ts compile fine, but on my edison when I :</p>
  
  <pre><code>gcc -std=c99 -Wall -O0 -ggdb -o sender sender.c spsc_circular_queue.c -lopus -lasound -lpthread
  
  
  In file included from /usr/include/alsa/asoundlib.h:49:0,
                   from sender.c:16:
  /usr/include/alsa/global.h:145:8: error: redefinition of 'struct timespec'
   struct timespec {
          ^
  In file included from /usr/include/alsa/global.h:34:0,
                   from /usr/include/alsa/asoundlib.h:49,
                   from sender.c:16:
  /usr/include/time.h:120:8: note: originally defined here
   struct timespec
          ^
  In file included from /usr/include/time.h:41:0,
                   from /usr/include/sched.h:34,
                   from sender.c:18:
  /usr/include/bits/time.h:30:8: error: redefinition of 'struct timeval'
   struct timeval
          ^
  In file included from /usr/include/alsa/asoundlib.h:49:0,
                   from sender.c:16:
  /usr/include/alsa/global.h:140:8: note: originally defined here
   struct timeval {
          ^
  Makefile:16: recipe for target 'sender' failed
  make: *** [sender] Error 1
  </code></pre>
  
  <p>How can I manage to stop these redifinitions ?!
  Thank you for your help !</p>
  
  <p>Extra info:</p>
  
  <p>I include :</p>
  
  <pre><code>#include &lt;assert.h&gt;
  #include &lt;stdbool.h&gt;
  #include &lt;stdint.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;signal.h&gt;
  #include &lt;errno.h&gt;
  #include &lt;sys/socket.h&gt;
  #include &lt;netinet/in.h&gt;
  #include &lt;arpa/inet.h&gt;
  #include &lt;netdb.h&gt;
  #include &lt;unistd.h&gt;
  #include &lt;alloca.h&gt;
  #include &lt;limits.h&gt;
  #include &lt;inttypes.h&gt;
  #include &lt;alsa/asoundlib.h&gt;
  #include "../opus/include/opus.h"
  #include &lt;pthread.h&gt;
  #include "spsc_circular_queue.h"
  </code></pre>
  
  <p>I remove sched.h, nothing happen</p>