diff options
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/my_global.h b/include/my_global.h index 7e31783e326..cb31ae233bd 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -1,6 +1,6 @@ /* Copyright (c) 2001, 2013, Oracle and/or its affiliates. - Copyright (c) 2010, 2017, MariaDB Corporation. + Copyright (c) 2009, 2017, MariaDB Corporation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -437,9 +437,8 @@ extern "C" int madvise(void *addr, size_t len, int behav); #define SIGNAL_HANDLER_RESET_ON_DELIVERY #endif -#ifndef STDERR_FILENO -#define STDERR_FILENO fileno(stderr) -#endif +/* don't assume that STDERR_FILENO is 2, mysqld can freopen */ +#undef STDERR_FILENO #ifndef SO_EXT #ifdef _WIN32 |