• Daniel Black's avatar
    MDEV-20685: compile fixes for Solaris/OSX/AIX · c238e9b9
    Daniel Black authored
    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...
    c238e9b9
violite.h 9.83 KB