Skip to content

Conversation

@laurynas-biveinis
Copy link
Contributor

macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general __APPLE__ define instead of RocksDB core OS_MACOSX, define only used functions, and define them right after system header includes.

macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.
@facebook-github-bot
Copy link

@hermanlee has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@hermanlee hermanlee closed this Aug 30, 2022
facebook-github-bot pushed a commit that referenced this pull request Aug 30, 2022
Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: #1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee

fbshipit-source-id: d82fad1
@laurynas-biveinis laurynas-biveinis deleted the macos-endian-conversions branch August 31, 2022 09:00
alanliang pushed a commit to alanliang/mysql-5.6 that referenced this pull request Mar 4, 2023
Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook#1204
GitHub Author: Laurynas Biveinis <laurynas.biveinis@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.

Reviewers: luqun, pgl

Reviewed By: pgl

Subscribers: pgl, webscalesql-eng@fb.com

Differential Revision: https://phabricator.intern.facebook.com/D38956497

Tags: accept2ship
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 11, 2023
…ok#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee

fbshipit-source-id: d82fad1
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 18, 2023
…ok#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee

fbshipit-source-id: d82fad1
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 26, 2023
…ok#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee

fbshipit-source-id: d82fad1
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 1, 2023
…ok#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee

fbshipit-source-id: d82fad1
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 14, 2023
…ok#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee

fbshipit-source-id: d82fad1
hermanlee pushed a commit to hermanlee/mysql-5.6 that referenced this pull request Oct 18, 2023
…ok#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 9, 2024
…a#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook/mysql-5.6#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 10, 2024
…a#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook/mysql-5.6#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 7, 2024
…ok#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 2, 2024
…ok#1204)

Summary:
macOS does not have beXXtoh and htobeXX functions. Define them using macOS
equivalents.

Both downstreams have done the same: https://github.com/percona/percona-server/pull/4808/files#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f, MariaDB/server@b64910c#diff-083593616349ef36e9a39f1251813d7c0fe6a93883f131fe041f0d167dfe941f

This patch is closer to MariaDB one instead of Percona : use general `__APPLE__` define instead of RocksDB core `OS_MACOSX`, define only used functions, and define them right after system header includes.

Pull Request resolved: facebook#1204

Reviewed By: Pushapgl

Differential Revision: D38956497

Pulled By: hermanlee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants