Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-2662

LP #806975: patch for bug #803270 breaks OS X

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      **Reported in Launchpad by Alexey Kopytov last update 08-07-2011 07:46:43

      For some reasons fdatasync() is available but is not declared on OS X. So after the patch for bug #803270 I get the following warning (actually error, since I build with -Werror):

      os/os0file.c: In function os_file_fsync:
      os/os0file.c:1967: warning: implicit declaration of function fdatasync.

      The solution is to replace

      #ifdef HAVE_FDATASYNC

      with

      #if defined(HAVE_FDATASYNC) && HAVE_DECL_FDATASYNC

      That's what the server has in my_sync.c

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lpjirasync lpjirasync (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: