Files
libsodium/test/default
Jørgen P. TjernøandFrank Denis 100ccb452d Portability improvements (#1105)
* Move `raise` code to be behind an autoconf check

This moves the call to `raise` behind a `HAVE_RAISE` autoconf check,
in addition to `__wasm__`. This is intended to help porting to
other platforms that don't support `raise` (e.g. modern game consoles).

* Add autoconf check for `sysconf`

Only try to invoke `sysconf` if the target platform supports it, and
don't warn about unknown page size if `PAGE_SIZE` was defined. Add an
include for `sys/param.h` to increase likelihood of finding `PAGE_SIZE`.
This is intended to help porting to other platforms that don't support
`sysconf` (e.g. modern game consoles) that have a fixed hardware page
size.

* Don't try to use raise & sysconf in a WASI environment

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2021-10-09 18:39:02 +02:00
..
2018-12-29 16:42:09 +01:00
2015-10-11 12:56:20 +02:00
2019-05-30 21:57:51 +02:00
2017-02-23 11:15:29 +01:00
2017-02-23 11:15:29 +01:00
2014-04-14 21:34:55 -07:00
2014-04-14 21:34:55 -07:00
2017-07-24 22:08:07 +02:00
2017-07-24 15:16:22 +02:00
2014-09-16 20:01:58 -07:00
2017-02-23 11:19:53 +01:00
2017-02-23 11:19:53 +01:00
2019-05-30 21:57:51 +02:00
2017-02-23 11:19:53 +01:00
2017-08-03 13:34:31 +02:00
2014-09-16 20:01:58 -07:00
2021-03-20 00:08:54 +01:00
2017-02-23 11:19:53 +01:00
2017-02-23 11:19:53 +01:00
2017-12-11 23:22:34 +01:00
2017-12-01 15:28:09 +01:00
2017-02-23 11:19:53 +01:00
2017-02-23 11:19:53 +01:00
2020-05-14 12:40:59 +02:00
2020-05-14 12:40:59 +02:00
2019-05-30 21:57:51 +02:00
2017-12-21 22:35:02 +01:00
2017-02-23 11:25:09 +01:00
2017-02-23 11:25:09 +01:00
2021-02-07 13:57:31 +01:00
2019-01-02 16:17:35 +01:00
2017-02-19 18:13:10 +01:00
2017-09-17 23:13:38 +02:00
2017-07-29 21:46:14 +02:00
2017-03-12 13:15:39 +01:00
2021-02-21 00:52:29 +01:00
2021-10-09 18:39:02 +02:00
2017-12-01 17:29:41 +01:00
2019-01-03 09:49:33 +01:00
2017-02-23 11:20:37 +01:00
2017-02-23 11:20:37 +01:00
2019-01-03 09:49:33 +01:00
2017-02-25 21:01:52 +01:00
2019-05-30 21:57:51 +02:00
2020-04-26 20:07:29 +02:00
2020-04-26 20:07:29 +02:00
2020-04-26 20:07:29 +02:00
2020-04-26 20:07:29 +02:00
2017-02-23 11:22:00 +01:00
2017-02-23 11:22:00 +01:00
2019-05-30 21:57:51 +02:00
2019-05-30 21:57:51 +02:00
2019-05-30 21:57:51 +02:00
2017-02-23 11:22:36 +01:00
2017-02-23 11:22:36 +01:00
2017-08-03 13:34:31 +02:00
2017-02-24 19:23:14 +01:00
2019-01-02 16:17:35 +01:00
2017-03-05 14:45:13 +01:00
2017-02-24 19:23:55 +01:00
2017-02-24 19:23:14 +01:00
2017-11-25 17:53:33 +01:00
2021-02-13 12:10:21 +01:00
2021-02-13 12:10:21 +01:00
2017-02-23 11:23:50 +01:00
2021-03-10 18:46:07 +01:00
2017-12-06 13:53:22 +00:00