In message <[EMAIL PROTECTED]> on Tue, 22 Feb 2005 14:11:28 +0100, [EMAIL 
PROTECTED] said:

epommate> Hi,
epommate> 
epommate> I made a compilation of OpenSSL 0.9.7e on OS/2 Warp and its work.
epommate> 
epommate> I encountered a small problem during compilation, there was
epommate> an error in the file crypto/rand/rand_egd.c:
epommate> On line 139, "struct sockaddr_un" was undefined.
epommate> 
epommate> So, I replaced in the code the following lines :
epommate> ==============
epommate> # ifdef OPENSSL_SYS_VXWORKS
epommate> #   include <streams/un.h>
epommate> # else
epommate> #   include <sys/un.h>
epommate> # endif
epommate> #else
epommate> struct        sockaddr_un {
epommate>       short   sun_family;             /* AF_UNIX */
epommate>       char    sun_path[108];          /* path name (gag) */
epommate> };
epommate> #endif /* NO_SYS_UN_H */
epommate> =================
epommate> by this:
epommate> =================
epommate> struct        sockaddr_un {
epommate>       short   sun_family;             /* AF_UNIX */
epommate>       char    sun_path[108];          /* path name (gag) */
epommate> };
epommate> =================
epommate> 
epommate> I compiled it again and there was no error.
epommate> 
epommate> Is this correct? Do you think that I did no error ?

What you show us is an error, you're creating an inbalance between
#if[def] and #endif (basically, you removed the end of the
#ifdef NO_SYS_UN_H condition).  Am I to assume you removed the whole
#ifdef NO_SYS_UN_H clause?  In that case, I think it's much safer to
copy that definition of sockaddr_un into a OS/2 specific section.

I might look into it tonight (EST, I'm currently in Boston), if I
remember.

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         [EMAIL PROTECTED]
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to