Add a missing include to make commit f061b67 work on Win32.
[claws.git] / src / common / w32lib.h
index f93d7d488dc520a51f542983075dafb168c72b2a..fb7b9239eb642060aaeb45cdcd3a6ce609a521de 100644 (file)
@@ -84,6 +84,8 @@
 #include <sys/time.h>
 #endif
 
+#include <glib/gstdio.h>
+
 /* Mingw32 3.4.4 defines interface to struct and thus breaks our own
    use of that symbol.  Undef it here. */
 #if defined(_BASETYPS_H) && defined(interface) 
@@ -174,7 +176,7 @@ struct timezone {
 #endif
 
 /*** stat ***/
-int lstat( const char *file_name, struct stat *buf );
+int lstat( const char *file_name, GStatBuf *buf );
 
 /*** sys/wait ***/
 pid_t waitpid( pid_t pid, int *status, int options );
@@ -185,12 +187,10 @@ int gettimeofday( struct timeval *tv, struct timezone *tz );
 #endif
 
 /*** unistd ***/
-uid_t getuid( void );
 int setpgid( pid_t pid, pid_t pgid );
 pid_t getppid( void );
 pid_t fork( void );
 unsigned int sleep( unsigned int seconds );
-int link( const char *oldpath, const char *newpath );
 
 /*** stdlib ***/
 long int random( void );
@@ -213,11 +213,4 @@ int write_w32_registry_dword( char *parent, char *section, char *value, int data
 char *read_w32_registry_string( char *parent, char *section, char *key );
 char *get_content_type_from_registry_with_ext( char *ext );
 
-\f
-/* Simulate thread-safe versions of some functions.  */
-#define gmtime_r(time, resultp) gmtime (time)
-#define localtime_r(time, resultp) localtime (time)
-#define asctime_r(time, buffer) asctime (time)
-#define ctime_r(time, buffer) ctime (time)
-
 #endif