In apps/rehash.c, decorate the inclusion of internal/o_dir.h for VMS
authorRichard Levitte <levitte@openssl.org>
Thu, 23 Feb 2017 12:45:00 +0000 (13:45 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 23 Feb 2017 14:16:37 +0000 (15:16 +0100)
commit7d02309a1622a804668a22f9cfbe9c5e49dead9a
tree5ecb83651a8438baa4f27ff398835e4a367e2200
parent9f1dd6a6ff6dadb3b356f74357a85cc3b5002e6d
In apps/rehash.c, decorate the inclusion of internal/o_dir.h for VMS

The library files are built with symbol names as is, while the
application is built with the default uppercase-all-symbols mode.
That's fine for public APIs, because we have __DECC_INCLUDE_PROLOGUE.H
and __DECC_INCLUDE_EPILOGUE.H automatically telling the compiler how
to treat the public header files.  However, we don't have the same
setup for internal library APIs, since they are usually only used by
the libraries.

Because apps/rehash.c uses a library internal header file, we have to
surround that inclusion with the same kind of pragmas found in
__DECC_INCLUDE_PROLOGUE.H and __DECC_INCLUDE_EPILOGUE.H, or we get
unresolved symbols when building no-shared.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2725)
(cherry picked from commit 2ac915f16218982f48dbc799b8308a07441d2e35)
apps/rehash.c