/[packages]/cauldron/mariadb/current/SOURCES/mariadb-5.5-errno.patch
ViewVC logotype

Contents of /cauldron/mariadb/current/SOURCES/mariadb-5.5-errno.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 583355 - (show annotations) (download)
Wed Feb 5 14:19:22 2014 UTC (10 years, 1 month ago) by oden
File size: 822 byte(s)
- add file changes as well

1 "extern int errno" is just a really bad idea.
2
3
4 diff -Naurp mariadb-10.0.7/include/my_sys.h mariadb-10.0.7.oden/include/my_sys.h
5 --- mariadb-10.0.7/include/my_sys.h 2013-12-23 10:35:05.000000000 +0100
6 +++ mariadb-10.0.7.oden/include/my_sys.h 2014-02-04 16:34:36.392328175 +0100
7 @@ -209,13 +209,8 @@ extern void my_large_free(uchar *ptr);
8 #define my_safe_afree(ptr, size, max_alloca_sz) my_afree(ptr)
9 #endif /* HAVE_ALLOCA */
10
11 -#ifndef errno /* did we already get it? */
12 -#ifdef HAVE_ERRNO_AS_DEFINE
13 #include <errno.h> /* errno is a define */
14 -#else
15 -extern int errno; /* declare errno */
16 -#endif
17 -#endif /* #ifndef errno */
18 +
19 extern char *home_dir; /* Home directory for user */
20 extern MYSQL_PLUGIN_IMPORT char *mysql_data_home;
21 extern const char *my_progname; /* program-name (printed in errors) */

  ViewVC Help
Powered by ViewVC 1.1.30