durusmail: quixote-users: Re: scgi , passfd.c under solaris
scgi , passfd.c under solaris
2002-10-28
Re: scgi , passfd.c under solaris
2002-10-29
2002-10-30
Re: scgi , passfd.c under solaris
Neil Schemenauer
2002-10-29
On Tue, Oct 29, 2002 at 07:21:43PM +0000, Jon Dyte wrote:
> Neil
>
> This was on solaris(sunos?) 2.5 / 2.6  with scgi 0.5.
>
> I think those #define _XOPEN_SOURCE are newer. Solaris 8?

Hmm, /usr/include/sys/feature_tests.h on Solaris 2.6 sez:

    /*
     * As specified in the following X/Open specifications:
     *
     *   System Interfaces and Headers, Issue 4, Version 2
     *   Commands and Utilities, Issue 4, Version 2
     *   Networking Interfaces, Issue 4
     *   X/Open Curses, Issue 4
     *
     * application writers wishing to use any functions specified
     * as X/Open UNIX Extension must define _XOPEN_SOURCE and
     * _XOPEN_SOURCE_EXTENDED=1.  The Sun internal macro _XPG4_2
     * should not be used in its place as unexpected results may
     * occur.
     */
    #if (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE_EXTENDED - 0 == 1)
    #define _XPG4_2
    #endif

Can you try compiling with

    #ifndef _XOPEN_SOURCE
    #define _XOPEN_SOURCE 1
    #define _XOPEN_SOURCE_EXTENDED 1
    #endif

instead of using _XPG4_2?

  Neil

reply