]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg: add issetugid declaration to fix openssl build on FreeBSD
authorrebecca via Groups.Io <rebecca=bluestop.org@groups.io>
Sat, 20 Apr 2019 06:38:29 +0000 (06:38 +0000)
committerJian J Wang <jian.j.wang@intel.com>
Wed, 24 Apr 2019 08:31:11 +0000 (16:31 +0800)
When building OpenSSL, the OpenBSD/FreeBSD/DFBSD code in crypto/uid.c
calls issetugid(). Add the declaration of this function to
CrtLibSupport.h to avoid the need to patch the openssl code on these
platforms.

Signed-off-by: Rebecca Cran <rebecca@bluestop.org>
Reviewed-by: Jian Wang <jian.j.wang@intel.com>
CryptoPkg/Library/Include/CrtLibSupport.h

index a241fb96fb7370a44fb6aa2f775bb182fa32ddc4..b05c5d908ce2605ca159bf9d52a7e091718d4559 100644 (file)
@@ -155,6 +155,7 @@ uid_t          getuid      (void);
 uid_t          geteuid     (void);\r
 gid_t          getgid      (void);\r
 gid_t          getegid     (void);\r
+int            issetugid   (void);\r
 void           qsort       (void *, size_t, size_t, int (*)(const void *, const void *));\r
 char           *getenv     (const char *);\r
 char           *secure_getenv (const char *);\r