mariadb/mysys
Daniel Black c238e9b96a MDEV-20685: compile fixes for Solaris/OSX/AIX
sig_return: Solaris/OSX returns different function ptr
Move defination to my_alarm.h as its the only use.

prevents compile warnings (copied from 10.3 branch)

mysys/my_sync.c:136:19: error: 'cur_dir_name' defined but not used [-Werror=unused-const-variable=]
  136 | static const char cur_dir_name[]= {FN_CURLIB, 0};
      |                   ^~~~~~~~~~~~

fix compile error (DEPRECATED) leaked from ssl headers.

In file included from /export/home/dan/mariadb-server-10.4/sql/sys_vars.cc:37:
/export/home/dan/mariadb-server-10.4/sql/sys_vars.ic:69: error: "DEPRECATED" redefined [-Werror]
   69 | #define DEPRECATED(X) X
      |
In file included from /export/home/dan/mariadb-server-10.4/include/violite.h:150,
                 from /export/home/dan/mariadb-server-10.4/sql/sql_class.h:38,
                 from /export/home/dan/mariadb-server-10.4/sql/sys_vars.cc:36:
/usr/include/openssl/ssl.h:2356: note: this is the location of the previous definition
 2356 | # define DEPRECATED __attribute__((deprecated))
      |

Avoid Werror condition on non-Linux:

plugin/server_audit/server_audit.c:2267:7: error: variable 'db_len_off' set but not used [-Werror=unused-but-set-variable]
 2267 |   int db_len_off;
      |       ^~~~~~~~~~
plugin/server_audit/server_audit.c:2266:7: error: variable 'db_off' set but not used [-Werror=unused-but-set-variable]
 2266 |   int db_off;
      |       ^~~~~~

auth_gssapi fix include path for Solaris

Consistent with the upstream packaged patch:
https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/database/mariadb-103/patches/06-gssapi.h.patch

compile warnings on Solaris

[ 91%] Building C object plugin/server_audit/CMakeFiles/server_audit.dir/server_audit.c.o
/plugin/server_audit/server_audit.c: In function 'auditing_v8':
/plugin/server_audit/server_audit.c:2194:20: error: unused variable 'db_len_off' [-Werror=unused-variable]
 2194 |   static const int db_len_off= 128;
      |                    ^~~~~~~~~~
/plugin/server_audit/server_audit.c:2193:20: error: unused variable 'db_off' [-Werror=unused-variable]
 2193 |   static const int db_off= 120;
      |                    ^~~~~~
/plugin/server_audit/server_audit.c:2192:20: error: unused variable 'cmd_off' [-Werror=unused-variable]
 2192 |   static const int cmd_off= 4432;
      |                    ^~~~~~~
At top level:
/plugin/server_audit/server_audit.c:2192:20: error: 'cmd_off' defined but not used [-Werror=unused-const-variable=]
/plugin/server_audit/server_audit.c:2193:20: error: 'db_off' defined but not used [-Werror=unused-const-variable=]
 2193 |   static const int db_off= 120;
      |                    ^~~~~~
/plugin/server_audit/server_audit.c:2194:20: error: 'db_len_off' defined but not used [-Werror=unused-const-variable=]
 2194 |   static const int db_len_off= 128;
      |                    ^~~~~~~~~~
cc1: all warnings being treated as errors

tested on:
$ uname -a
SunOS openindiana 5.11 illumos-b97b1727bc i86pc i386 i86pc
2020-04-29 12:02:47 +03:00
..
array.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
base64.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ChangeLog
charset-def.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
charset.c MDEV-19750 mysql command wrong encoding 2019-06-17 18:04:47 +01:00
checksum.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
CMakeLists.txt Only link mysys_ssl when required. 2019-06-03 09:55:59 +02:00
errors.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
file_logger.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
get_password.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
hash.c MDEV-22074 UBSAN: applying zero offset to null pointer in hash.c 2020-03-31 00:44:01 +03:00
lf_alloc-pin.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
lf_dynarray.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
lf_hash.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
list.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_dyncol.c Merge 10.1 into 10.2 2018-02-08 13:53:21 +02:00
mf_arr_appstr.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_cache.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_dirname.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_fn_ext.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_format.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_getdate.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_iocache.c fix MDEV-18750: failed to flashback large-size binlog file 2019-06-05 13:56:27 +02:00
mf_iocache2.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_keycache.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
mf_keycaches.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_loadpath.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_pack.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_path.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_qsort.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_qsort2.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_radix.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_same.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_sort.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_soundex.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_tempdir.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_tempfile.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_unixpath.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_wcomp.c Update FSF Address 2019-05-11 21:29:06 +03:00
mulalloc.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_access.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_addr_resolve.c Merge branch '10.1' into 10.2 2020-03-06 15:42:45 +01:00
my_alarm.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_alloc.c Merge 5.5 into 10.1 2019-05-28 11:25:45 +03:00
my_atomic.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_atomic_writes.c Make atomic writes general 2017-01-11 09:18:35 +02:00
my_basename.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_bit.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_bitmap.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_chmod.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_chsize.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_compare.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_compress.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_conio.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_context.c Merge branch '10.1' into 10.2 2017-03-30 12:48:42 +02:00
my_copy.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_create.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_default.c Merge branch '10.1' into 10.2 2020-03-05 10:52:43 +02:00
my_delete.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_div.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_dlerror.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_error.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_file.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_fopen.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_fstream.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_gethwaddr.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_getncpus.c Correct FreeBSD cpuset_t type 2020-04-03 15:30:33 +02:00
my_getopt.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_getpagesize.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_getsystime.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_getwd.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_init.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_largepage.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_lib.c A better fix for edd7e7c 2020-04-01 16:25:07 +04:00
my_libwrap.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_lock.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_lockmem.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_malloc.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_memmem.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mess.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mkdir.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mmap.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_new.cc Update FSF Address 2019-05-11 21:29:06 +03:00
my_once.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_open.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_port.c Follow-up to changing FSF address 2019-05-11 18:30:45 +03:00
my_pread.c Fix debug assert to match its intention. 2019-06-17 19:01:15 +01:00
my_pthread.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_quick.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_rdtsc.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_read.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_redel.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_rename.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_rnd.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_safehash.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_safehash.h Update FSF address 2019-05-10 20:52:00 +03:00
my_seek.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_setuser.c MDEV-11676 Starting service with mysqld_safe_helper fails in SELINUX "enforcing" mode 2017-01-04 13:38:03 +01:00
my_sleep.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_static.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_static.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_symlink.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_symlink2.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_sync.c MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
my_thr_init.c cleanup THR_KEY_mysys 2020-04-25 00:55:39 +03:00
my_timer_cycles.il Update FSF Address 2019-05-11 21:29:06 +03:00
my_uuid.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_wincond.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_windac.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_winerr.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_winfile.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_winthread.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_write.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysys_priv.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
psi_noop.c Update FSF address 2019-05-11 19:25:02 +03:00
ptr_cmp.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
queues.c spelling fixes 2017-03-07 13:38:06 +04:00
safemalloc.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
stacktrace.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
string.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
test_charset.c Update FSF Address 2019-05-11 21:29:06 +03:00
test_dir.c Update FSF Address 2019-05-11 21:29:06 +03:00
test_thr_mutex.c Update FSF address 2019-05-10 20:52:00 +03:00
test_xml.c Update FSF Address 2019-05-11 21:29:06 +03:00
testhash.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thr_alarm.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thr_lock.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
thr_mutex.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
thr_rwlock.c Update FSF Address 2019-05-11 21:29:06 +03:00
thr_timer.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
tree.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
typelib.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
waiting_threads.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
wqueue.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00