This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Eric, The configure(1) script currently undefines __BSD_VISIBLE or sets it to 1. This should work with both the BSD header-files, which use the construct "#if __BSD_VISIBLE", and with your patches, which use the construct "!defined(__BSD_VISIBLE)". Consequently, I don't think any modification is necessary. > > +#if ! ( _NO_XOPEN4 && _NO_XOPEN5 ) && !defined(_DARWIN_C_SOURCE) && > > !defined(__BSD_VISIBLE) > > I do believe that the patch above is my error. > > Looking at the FreeBSD headers, the usage is: > stdio.h:#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 > stdio.h:#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE > stdio.h:#if __BSD_VISIBLE || __POSIX_VISIBLE <= 199506 > stdio.h:#if __BSD_VISIBLE > stdio.h:#if __BSD_VISIBLE || __XSI_VISIBLE > 0 && __XSI_VISIBLE < 600 > stdio.h:#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 > stdio.h:#endif /* __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 */ > stdio.h:#if __BSD_VISIBLE > stdio.h:#endif /* __BSD_VISIBLE */ > > I hate lines like this: > #if ! ( _NO_XOPEN4 && _NO_XOPEN5 ) && !defined(_DARWIN_C_SOURCE) && > (__BSD_VISIBLE == 0) > > The lime above allows the program to compile. > The implications is that the FreeBSD headers provide the definition of union > semun. Regards, Steve Emmerson Ticket Details =================== Ticket ID: ICF-841424 Department: Support LDM Priority: Urgent Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.