Cleaning UEFI Build with additional OPENSSL_SYS_UEFI flags

Add OPENSSL_SYS_UEFI to remove unused syslog and uid stuffs for
more clean UEFI build.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2961)
This commit is contained in:
Qin Long 2017-03-15 23:33:57 +08:00 committed by Richard Levitte
parent 0acee5045a
commit cff55b90e9
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ int OPENSSL_issetugid(void)
return issetugid(); return issetugid();
} }
#elif defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VXWORKS) #elif defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI)
int OPENSSL_issetugid(void) int OPENSSL_issetugid(void)
{ {

2
e_os.h
View file

@ -87,7 +87,7 @@ extern "C" {
# define DEVRANDOM_EGD "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy" # define DEVRANDOM_EGD "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
# endif # endif
# if defined(OPENSSL_SYS_VXWORKS) # if defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI)
# define NO_SYS_PARAM_H # define NO_SYS_PARAM_H
# define NO_CHMOD # define NO_CHMOD
# define NO_SYSLOG # define NO_SYSLOG