Fixed bug #80814 (threaded mod_php won't load on FreeBSD: No space available for static Thread Local Storage)

This commit is contained in:
Dmitry Stogov 2021-03-10 16:03:47 +03:00
parent 7931956805
commit 3b377b51a2
4 changed files with 7 additions and 5 deletions

View file

@ -147,7 +147,7 @@ TSRM_API const char *tsrm_api_name(void);
# define __has_attribute(x) 0
#endif
#if !__has_attribute(tls_model)
#if !__has_attribute(tls_model) || defined(__FreeBSD__)
# define TSRM_TLS_MODEL_ATTR
#elif __PIC__
# define TSRM_TLS_MODEL_ATTR __attribute__((tls_model("initial-exec")))