mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge remote-tracking branch 'origin/10.4' into 10.5
This commit is contained in:
@@ -873,17 +873,10 @@ static char *my_fgets(char * s, int n, FILE * stream, int *len)
|
||||
|
||||
/*
|
||||
Wrapper for popen().
|
||||
On Windows, uses binary mode to workaround
|
||||
C runtime bug mentioned in MDEV-9409
|
||||
*/
|
||||
static FILE* my_popen(const char *cmd, const char *mode)
|
||||
{
|
||||
FILE *f= popen(cmd, mode);
|
||||
#ifdef _WIN32
|
||||
if (f)
|
||||
_setmode(fileno(f), O_BINARY);
|
||||
#endif
|
||||
return f;
|
||||
return popen(cmd, mode);
|
||||
}
|
||||
|
||||
#ifdef EMBEDDED_LIBRARY
|
||||
|
Reference in New Issue
Block a user