Skip to content

Commit

Permalink
Haiku fix ZTS build, disabling tls model
Browse files Browse the repository at this point in the history
Closes GH-8047.
  • Loading branch information
devnexen authored and cmb69 committed Feb 7, 2022
1 parent 9bd468d commit bea542a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2022, PHP 8.0.17

- Core:
. Fixed Haiku ZTS build. (David Carlier)

- Iconv:
. Fixed bug GH-7953 (ob_clean() only does not set Content-Encoding). (cmb)

Expand Down
2 changes: 1 addition & 1 deletion TSRM/TSRM.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ TSRM_API const char *tsrm_api_name(void);
# define __has_attribute(x) 0
#endif

#if !__has_attribute(tls_model) || defined(__FreeBSD__) || defined(__MUSL__)
#if !__has_attribute(tls_model) || defined(__FreeBSD__) || defined(__MUSL__) || defined(__HAIKU__)
# define TSRM_TLS_MODEL_ATTR
#elif __PIC__
# define TSRM_TLS_MODEL_ATTR __attribute__((tls_model("initial-exec")))
Expand Down

0 comments on commit bea542a

Please sign in to comment.