On Tue, Jul 15, 2014 at 07:31:36PM +0200, Johnson, Wayne via RT wrote:

> c89 -DMONOLITH -I.. -I../include  -Ww -D__TANDEM -D_XOPEN_SOURCE 
> -D_XOPEN_SOURCE_EXTENDED=1 -D_TANDEM_SOURCE -DB_ENDIAN   -c -o ca.o ca.c
>   #    include <sys/file.h>
>                            ^
> "/home/devbuild/openssl-1.0.1h/apps/ca.c", line 86: error(1003): could not
>           open source file "sys/file.h"
>
> To correct this I changed the code with the attached context diff.

This legacy code needs not a scalpel, but an axe.  The jumble of
platform-specific #ifdefs in question has no place in top level
application code.  Instead platform neutral functions should be
called, each of which is defined is a separate file that implements
the required portable interface.

Even most Unix systems these days one expects to find W_OK, ... in
<unistd.h>, not <sys/file.h>.

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to