diff options
author | Jonathan Gray <jsg@jsg.id.au> | 2018-03-28 14:06:14 +1100 |
---|---|---|
committer | Dylan Baker <dylan.c.baker@intel.com> | 2020-09-01 13:53:27 -0700 |
commit | 3d0f9e3dc307935f7c753b5682d9bd79beae8760 (patch) | |
tree | e0cbca7e52705f1e20f78fb9d6ddbbf5b15c0f4b /.pick_status.json | |
parent | 64039dffc4cf341d1162c0ff4c4f1b30e445f9ec (diff) |
util: unbreak endian detection on OpenBSD
Since cbee1bfb34274668a05995b9d4c78ddec9e5ea4c endian.h is unconditionally
used if available.
glibc has byte order defines with two leading underscores. OpenBSD
has private defines with a single leading underscore in machine/endian.h
and public defines in endian.h with no underscore.
The code under the endian.h block did not check if symbols were
defined before equating them so '#if __BYTE_ORDER == __LITTLE_ENDIAN'
would turn into '#if 0 == 0' which is always true.
Fixes: cbee1bfb342 ("meson/configure: detect endian.h instead of trying to guess when it's available")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
(cherry picked from commit 7eab6845e9dd49f0ef0bf9a7d986aaf685e77981)
Diffstat (limited to '.pick_status.json')
-rw-r--r-- | .pick_status.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.pick_status.json b/.pick_status.json index 46a7bb825b2..40297c4a207 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -949,7 +949,7 @@ "description": "util: unbreak endian detection on OpenBSD", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "cbee1bfb34274668a05995b9d4c78ddec9e5ea4c" }, |