Remove __sun ifdefs

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Server Programmability
    • Fully Compatible
    • ALL
    • Programmability 2024-10-14
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      It would be nice to simplify the codebase by removing the special code and preprocessor checks for Solaris/OpenIndiana. Here is a snapshot of just what is based on __sun today; this doesn't include all the special code in our SConscripts..

      src/mongo/base/parse_number_test.cpp:#if !(defined(_WIN32) || defined(__sun))
      src/mongo/base/parse_number_test.cpp:#if !(defined(_WIN32) || defined(__sun))
      src/mongo/db/repl/isself.cpp:#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || \
      src/mongo/db/startup_warnings_mongod.cpp:#ifndef __sun
      src/mongo/platform/endian.h:#elif defined(__sun)
      src/mongo/platform/posix_fadvise.cpp:#if defined(__sun)
      src/mongo/platform/posix_fadvise.cpp:#endif  // #if defined(__sun)
      src/mongo/platform/posix_fadvise.h:#if defined(__sun)
      src/mongo/platform/random.cpp:#elif defined(__linux__) || defined(__sun) || defined(__APPLE__) || defined(__FreeBSD__) || \
      src/mongo/platform/strcasestr.cpp:#if defined(__sun)
      src/mongo/platform/strcasestr.cpp:#if defined(_WIN32) || defined(__sun)
      src/mongo/platform/strcasestr.cpp:#if defined(__sun)
      src/mongo/platform/strcasestr.cpp:#if defined(__sun)
      src/mongo/platform/strcasestr.cpp:#endif  // #if defined(__sun)
      src/mongo/platform/strcasestr.cpp:#endif  // #if defined(_WIN32) || defined(__sun)
      src/mongo/platform/strcasestr.cpp:#if defined(__sun)
      src/mongo/platform/strcasestr.cpp:#endif  // __sun
      src/mongo/platform/strcasestr.h:#if defined(_WIN32) || defined(__sun)
      src/mongo/util/options_parser/options_parser_test.cpp:#if !(defined(_WIN32) || defined(__sun))
      src/mongo/util/options_parser/options_parser_test.cpp:#if !(defined(_WIN32) || defined(__sun))
      src/mongo/util/options_parser/options_parser_test.cpp:#if !(defined(_WIN32) || defined(__sun))
      src/mongo/util/options_parser/options_parser_test.cpp:#if !(defined(_WIN32) || defined(__sun))
      src/mongo/util/options_parser/options_parser_test.cpp:#if !(defined(_WIN32) || defined(__sun))
      src/mongo/util/options_parser/options_parser_test.cpp:#if !(defined(_WIN32) || defined(__sun))
      src/mongo/util/processinfo_test.cpp:#if defined(__APPLE__) || defined(__linux__) || (defined(__sun) && defined(__SVR4)) || \
      src/mongo/util/stacktrace_posix.cpp:#elif defined(__sun)
      src/mongo/util/stacktrace_posix.cpp:#elif defined(__sun)
      src/mongo/util/time_support.cpp:#ifdef __sun
      

            Assignee:
            Billy Donahue
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: