Prevent a collision with the system's '#define errno ...' by guarding the variable declaration.

This commit is contained in:
joerg@mysql.com 2005-03-04 10:22:50 +01:00
parent d68db573e6
commit 631aac9d00

View file

@ -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 */