Commit 2c5ec3e
[macos] MyRocks: define BSD-style endian conversion functions (facebook#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: d82fad11 parent f47f289 commit 2c5ec3e
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
23 | 38 | | |
24 | 39 | | |
25 | 40 | | |
| |||
0 commit comments