[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[LDM #ICF-841424]: FreeBSD 10.3 patches for ldm-6.13.4
- Subject: [LDM #ICF-841424]: FreeBSD 10.3 patches for ldm-6.13.4
- Date: Tue, 07 Mar 2017 12:46:15 -0700
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.