Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8569

CMakeLists.txt: define _GNU_SOURCE and _LARGEFILE_SOURCE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0-beta
    • None
    • None
    • Reviewed

    Description

      In the native code, we should define _GNU_SOURCE and _LARGEFILE_SOURCE so that all of the functions on Linux are available.

      _LARGEFILE enables fseeko and ftello; _GNU_SOURCE enables a variety of Linux-specific functions from glibc, including sync_file_range.

      Attachments

        1. HADOOP-8569.001.patch
          3 kB
          Colin McCabe
        2. HADOOP-8569.003.patch
          2 kB
          Colin McCabe

        Activity

          People

            cmccabe Colin McCabe
            cmccabe Colin McCabe
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: