mariadb/plugin
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
..
audit_null Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
auth_dialog Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
auth_ed25519 switch to CC 3.1 2019-07-20 09:09:28 +02:00
auth_examples Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
auth_gssapi MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
auth_pam MDEV-21913 Add pam_user_map.so file to binary tarball package 2020-04-28 17:51:38 +02:00
auth_pipe Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
auth_socket Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
aws_key_management Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
cracklib_password_check Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
daemon_example Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
debug_key_management Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
disks Merge 10.1 into 10.2 2019-06-23 20:33:13 +03:00
example_key_management Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
feedback Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
file_key_management Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
fulltext Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
handler_socket Merge branch '10.1' into 10.2 2017-10-24 14:53:18 +02:00
locale_info MDEV-11660 Make encryption plugins "pure" 2017-04-27 19:12:38 +02:00
metadata_lock_info Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
qc_info Merge 10.1 into 10.2 2017-05-06 14:36:46 +03:00
query_response_time Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
semisync Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
server_audit MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
simple_password_check Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_errlog Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
user_variables Fixing tests according to MDEV-20655 maturity stable for user_variables 2019-09-24 19:24:32 +04:00
userstat MDEV-13384 - misc Windows warnings fixed 2017-09-28 17:20:46 +00:00
win_auth_client Merge branch '5.5' into 10.1 2019-07-25 13:27:11 +02:00
wsrep_info MDEV-13569: wsrep_info.plugin failed in buildbot with "no nodes coming from prim view 2020-01-02 08:06:23 +02:00