title: Compilation errors I can't figure out
body: <p>I have a piece of code that I used to run without problems. But now I'm going back to it and I just can't even compile it! </p>
  
  <p>The piece that is not compiling is a .c file and I think it's complaining about libraries.</p>
  
  <p>I try to compile it by doing this:</p>
  
  <pre><code>gcc f.c 
  </code></pre>
  
  <p>And I get:</p>
  
  <pre><code>In file included from /usr/include/machine/ansi.h:39:0,
                   from /usr/include/sys/ansi.h:35,
                   from /usr/include/stdio.h:42
                   from f.c:7:
  /usr/include/machine/int_types.h:45:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
  In file included from /usr/include/sys/inttypes.h:39:0,
                   from /usr/include/inttypes.h:36,
                   from /usr/include/netdb.h:98,
                   from f.c:9:
  /usr/include/sys/stdint.h:39:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int8_t'
  In file included from /usr/include/ara/inet.h:69:0,
                   from netlib.h:7,
                   from f.c:16:
  /usr/include/netinet/in.h:242:2: error: expected specifier-qualifier-list before '__int8_t'
  /usr/include/netinet/in.h:259:2: error: expected specifier-qualifier-list before '__int8_t'
  </code></pre>
  
  <p>And this is my .c file:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;netdb.h&gt;
  #include &lt;sys/socket.h&gt;
  #include &lt;unistd.h&gt;
  #include &lt;errno.h&gt;
  #include &lt;sys/types.h&gt;
  #include &lt;sys/stat.h&gt;
  #include &lt;fcntl.h&gt;
  #include "netlib.h"
  
  
  #include &lt;stdlib.h&gt;
  
  #define MACHSIZE    50
  #define BUFFSIZE    256
  #define MAXCONN     100
  #define MAXFILES    500
  #define COMBUFF     200
  
  struct Connection{
          int conn;
      in_addr_t ip;
      int port;
      int numFilesOpened;
  };
  
  typedef struct Connection Connection;
  
  Connection connection[MAXCONN];
  
  struct Files{
      int fid;
      long machine;
      int conn;
  };
  
  typedef struct Files Files;
  
  Files files[MAXFILES];
  int filesOpened = 0;
  int port = 15061;
  int numCli = 0;
  char command[COMBUFF];
  char response;
  int conn;
  char buffer[BUFFSIZE];
  
  ... 
  </code></pre>
  
  <p>There is more to it but I think it has to do with the libraries so you might be able to help me with this. </p>
  
  <p>Can anybody see anything here? </p>
  
  <p>Also, in case this is important, I'm doing this on NetBSD but I tried on FreeBSD and it's the same. </p>