mariadb10.11/mariadb-errno.patch

18 lines
738 B
Diff
Raw Normal View History

2014-04-07 19:07:33 +00:00
--- mariadb-10.0.10/include/my_sys.h.p1 2014-03-30 19:56:37.000000000 +0200
+++ mariadb-10.0.10/include/my_sys.h 2014-04-07 15:30:20.627060157 +0200
@@ -209,13 +209,7 @@ extern void my_large_free(uchar *ptr);
#define my_safe_afree(ptr, size, max_alloca_sz) my_afree(ptr)
#endif /* HAVE_ALLOCA */
2013-01-10 17:35:12 +00:00
-#ifndef errno /* did we already get it? */
-#ifdef HAVE_ERRNO_AS_DEFINE
2013-10-11 07:58:06 +00:00
-#include <errno.h> /* errno is a define */
2013-01-10 17:35:12 +00:00
-#else
-extern int errno; /* declare errno */
-#endif
-#endif /* #ifndef errno */
2014-04-07 19:07:33 +00:00
+#include <errno.h> /* errno is a define */
2013-01-10 17:35:12 +00:00
extern char *home_dir; /* Home directory for user */
2013-10-11 07:58:06 +00:00
extern MYSQL_PLUGIN_IMPORT char *mysql_data_home;
2013-01-10 17:35:12 +00:00
extern const char *my_progname; /* program-name (printed in errors) */