2008-08-23 20:31:19 +00:00
|
|
|
"extern int errno" is just a really bad idea.
|
|
|
|
|
|
|
|
|
2012-12-06 21:53:33 +00:00
|
|
|
diff -up mysql-5.5.28/include/my_sys.h.p1 mysql-5.5.28/include/my_sys.h
|
|
|
|
--- mysql-5.5.28/include/my_sys.h.p1 2012-08-29 10:50:46.000000000 +0200
|
|
|
|
+++ mysql-5.5.28/include/my_sys.h 2012-12-06 14:09:15.218170154 +0100
|
|
|
|
@@ -197,13 +197,8 @@ extern void my_large_free(uchar *ptr);
|
2010-12-24 03:54:59 +00:00
|
|
|
#define my_afree(PTR) my_free(PTR)
|
2009-01-14 17:10:05 +00:00
|
|
|
#endif /* HAVE_ALLOCA */
|
2004-09-09 09:00:05 +00:00
|
|
|
|
2008-08-23 20:31:19 +00:00
|
|
|
-#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 */
|
2004-09-09 09:00:05 +00:00
|
|
|
+
|
2008-08-23 20:31:19 +00:00
|
|
|
extern char *home_dir; /* Home directory for user */
|
|
|
|
extern const char *my_progname; /* program-name (printed in errors) */
|
2010-12-24 03:54:59 +00:00
|
|
|
extern char curr_dir[]; /* Current directory for user */
|