diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2022-11-04 13:12:35 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2022-11-04 13:50:36 +0100 |
commit | 0b9ca3e1607eeb6fb242a3887ae6f1141356053c (patch) | |
tree | 29699a8c910774c7ac1c4bf85d3c989bdd4eda82 /include/my_global.h | |
parent | 4b87d3628acf815836c0efc84fbcd878517d9b89 (diff) | |
download | mariadb-git-0b9ca3e1607eeb6fb242a3887ae6f1141356053c.tar.gz |
MDEV-27142 - postfix
Fix build failure in comp_err, if git is configured with default,
platform-specific EOL.
The error happens because comp_err is not prepared to handle extraneous
CR characters from errmgs-utf8.txt. Use fopen in text mode to fix.
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h index a849597f468..6b4ed7dbfcc 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -598,6 +598,9 @@ typedef SOCKET_SIZE_TYPE size_socket; #else #define HAVE_SOCK_CLOEXEC #endif +#ifndef O_TEXT +#define O_TEXT 0 +#endif /* additional file share flags for win32 */ #ifdef _WIN32 |