mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Prevent a collision with the system's '#define errno ...' by guarding the variable declaration.
This commit is contained in:
parent
d68db573e6
commit
631aac9d00
1 changed files with 2 additions and 0 deletions
|
@ -193,11 +193,13 @@ void __CDECL hfree(void *ptr);
|
|||
#endif
|
||||
#endif /* MSDOS */
|
||||
|
||||
#ifndef errno /* did we already get it? */
|
||||
#ifdef HAVE_ERRNO_AS_DEFINE
|
||||
#include <errno.h> /* errno is a define */
|
||||
#else
|
||||
extern int errno; /* declare errno */
|
||||
#endif
|
||||
#endif /* #ifndef errno */
|
||||
extern const char ** NEAR my_errmsg[];
|
||||
extern char NEAR errbuff[NRERRBUFFS][ERRMSGSIZE];
|
||||
extern char *home_dir; /* Home directory for user */
|
||||
|
|
Loading…
Reference in a new issue