Further issues:
- sql_no_fcache.patch had some issues with #ifdef __linux__ so not everything was disabled on non-Linux systems.
- userstat.patch used non-portable gettimeofday() call, replaced with my_getsystime()
- slow_extended.patch opt_slow_query_log_timestamp_precision variable was of type ulonglong - which fails on systems with sizeof(ulonglong) != sizeof(ulong)
Further issues: query_log_ timestamp_ precision variable was of type ulonglong - which fails on systems with sizeof(ulonglong) != sizeof(ulong)
- sql_no_fcache.patch had some issues with #ifdef __linux__ so not everything was disabled on non-Linux systems.
- userstat.patch used non-portable gettimeofday() call, replaced with my_getsystime()
- slow_extended.patch opt_slow_