@@ -123,10 +123,6 @@ struct utsname{
123123 * trivial stubs
124124 */
125125
126- static inline int readlink (const char * path , char * buf , size_t bufsiz )
127- {errno = ENOSYS ; return -1 }
128- static inline int symlink (const char * oldpath , const char * newpath )
129- {errno = ENOSYS ; return -1 }
130126static inline int fchmod (int fildes , mode_t mode )
131127{errno = ENOSYS ; return -1 }
132128#ifndef __MINGW64_VERSION_MAJOR
@@ -218,6 +214,8 @@ int setitimer(int type, struct itimerval *in, struct itimerval *out);
218214int sigaction (int sig , struct sigaction * in , struct sigaction * out );
219215int link (const char * oldpath , const char * newpath );
220216int uname (struct utsname * buf );
217+ int symlink (const char * target , const char * link );
218+ int readlink (const char * path , char * buf , size_t bufsiz );
221219
222220/*
223221 * replacements of existing functions
@@ -450,6 +448,8 @@ static inline void convert_slashes(char *path)
450448int mingw_offset_1st_component (const char * path );
451449#define offset_1st_component mingw_offset_1st_component
452450#define PATH_SEP ''
451+ extern char * mingw_query_user_email (void );
452+ #define query_user_email mingw_query_user_email
453453#if !defined(__MINGW64_VERSION_MAJOR ) && (!defined(_MSC_VER ) || _MSC_VER < 1800 )
454454#define PRIuMAX "I64u"
455455#define PRId64 "I64d"
0 commit comments