Blame SOURCES/mysql-errno.patch

6f9931
"extern int errno" is just a really bad idea.
6f9931
6f9931
6f9931
diff -Naur mysql-5.5.8.orig/include/my_sys.h mysql-5.5.8/include/my_sys.h
6f9931
--- mysql-5.5.8.orig/include/my_sys.h	2010-12-03 12:58:24.000000000 -0500
6f9931
+++ mysql-5.5.8/include/my_sys.h	2010-12-20 21:20:12.622190325 -0500
6f9931
@@ -201,13 +201,8 @@
6f9931
 #define my_afree(PTR) my_free(PTR)
6f9931
 #endif /* HAVE_ALLOCA */
6f9931
 
6f9931
-#ifndef errno				/* did we already get it? */
6f9931
-#ifdef HAVE_ERRNO_AS_DEFINE
6f9931
 #include <errno.h>			/* errno is a define */
6f9931
-#else
6f9931
-extern int errno;			/* declare errno */
6f9931
-#endif
6f9931
-#endif					/* #ifndef errno */
6f9931
+
6f9931
 extern char *home_dir;			/* Home directory for user */
6f9931
 extern const char *my_progname;		/* program-name (printed in errors) */
6f9931
 extern char curr_dir[];		/* Current directory for user */