jjanco / rpms / mariadb

Forked from rpms/mariadb 6 years ago
Clone
9c7c797
"extern int errno" is just a really bad idea.
9c7c797
9c7c797
diff -up mariadb-5.5.28a/include/my_sys.h.p1 mariadb-5.5.28a/include/my_sys.h
9c7c797
--- mariadb-5.5.28a/include/my_sys.h.p1	2012-12-17 16:06:12.942346553 +0100
9c7c797
+++ mariadb-5.5.28a/include/my_sys.h	2012-12-17 16:06:51.085361555 +0100
9c7c797
@@ -189,13 +189,8 @@ extern void my_large_free(uchar *ptr);
9c7c797
 #define my_safe_alloca(size, min_length) ((size <= min_length) ? my_alloca(size) : my_malloc(size,MYF(MY_FAE)))
9c7c797
 #define my_safe_afree(ptr, size, min_length) ((size <= min_length) ? my_afree(ptr) : my_free(ptr))
9c7c797
 
9c7c797
-#ifndef errno				/* did we already get it? */
9c7c797
-#ifdef HAVE_ERRNO_AS_DEFINE
9c7c797
 #include <errno.h>			/* errno is a define */
9c7c797
-#else
9c7c797
-extern int errno;			/* declare errno */
9c7c797
-#endif
9c7c797
-#endif					/* #ifndef errno */
9c7c797
+
9c7c797
 extern char *home_dir;			/* Home directory for user */
9c7c797
 extern const char *my_progname;		/* program-name (printed in errors) */
9c7c797
 extern const char *my_progname_short;	/* like above but without directory */