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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651002 - (show annotations) (download)
Wed Jul 9 23:33:25 2014 UTC (9 years, 9 months ago) by schedbot
File size: 822 byte(s)
Copying release 10.0.12-3.mga5 to pristine/ directory.
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