[sr #110392] Define _NETBSD_SOURCE and _OPENBSD_SOURCE in AC_USE_SYSTEM_EXTENSIONS
Julien ÉLIE <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.bugs |
|---|---|
| Message-ID | <[email protected]> |
Follow-up Comment #2, sr #110392 (project autoconf):
Hi Zack,
Thanks for the commit!
Please note that "Enable OpenBSD extensions on NetBSD." was not a typo. It is
really meant for use *on NetBSD* (not on OpenBSD).
From NetBSD documentation:
https://man.netbsd.org/reallocarray.3
#define _OPENBSD_SOURCE
And also about BSD portability:
https://learnbchs.org/portability-page2.html
#if defined(__NetBSD__)
# define _OPENBSD_SOURCE /* reallocarray */
#endif
--
Julien ÉLIE
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/support/?110392>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/