title: How to deal with "warning: inline function `*stat64` declared but never defined" in gcc with gnu99 support
body: <p>I am including <code>stat.h</code> in my <code>foo.c</code> as follows:</p>
  
  <pre><code>#include &lt;sys/stat.h&gt; 
  </code></pre>
  
  <p>When I compile this as follows:</p>
  
  <pre><code>gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -DUSE_ZLIB -DUSE_BZLIB -O0 -g -Wformat -Wall -Wswitch-enum -Wextra -std=gnu99 -DDEBUG=1 -c foo.c -o objects/foo.o -I...
  gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -DUSE_ZLIB -DUSE_BZLIB -O0 -g -Wformat -Wall -Wswitch-enum -Wextra -std=gnu99 -DDEBUG=1 objects/foo.o -o ../bin/debug.foo ../lib/libfoo.a ... -lbz2 -lz
  </code></pre>
  
  <p>I get the following warnings, which are specific to <code>&lt;sys/stat.h&gt;</code> functions:</p>
  
  <pre><code>In file included from foo.c:15:0:
  /usr/local/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/include-fixed/sys/stat.h:317:16: warning: inline function `lstat64` declared but never defined [enabled by default]
  /usr/local/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/include-fixed/sys/stat.h:255:16: warning: inline function `fstat64` declared but never defined [enabled by default]
  ...
  </code></pre>
  
  <p>How would I fix the issue referenced in these warnings? This didn't seem to be an issue until I migrated to C99 support with <code>-std=gnu99</code>, but I'm not sure why. Thanks for any advice.</p>