ERGO-Code / HiGHS

Linear optimization software
MIT License
848 stars 164 forks source link

OpenBSD - Update strict_fstream.hpp #1783

Closed ron-at-swgy closed 4 weeks ago

ron-at-swgy commented 1 month ago

The OpenBSD definition of "strerror_r", similar to FreeBSD, returns an int rather than a char *. This commit includes __OpenBSD__ in the list of defines to check for this function call.

jajhall commented 1 month ago

This looks uncontroversial, but I'll let @galabovaa be the judge

ron-at-swgy commented 4 weeks ago

Here is the relevant man page, in case it helps to solidify understanding - https://man.openbsd.org/strerror_r

jajhall commented 4 weeks ago

Thanks. @galabovaa will look at this in due course.

galabovaa commented 4 weeks ago

Looks good to me! Merging in latest.