Warning: implicit declaration of function `lstat'



I am trying to use g_lstat to obtain the attributes of a file.
Partial source code:

   #include <glib.h>
   #include <glib/gstdio.h>

   struct stat    *filedata;
   gint        result;

   result = g_lstat(filename,filedata);

I am getting a compiler error:

   "Warning: implicit declaration of function `lstat'"

There are no other error messages.

g_lstat is #defined as lstat in gstdio.h.

Thanks for any advice,

Kevin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]