]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg: remove global variable 'timeval' from OpenSslSupport.h
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 7 Dec 2015 06:33:27 +0000 (06:33 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Mon, 7 Dec 2015 06:33:27 +0000 (06:33 +0000)
The header file OpenSslSupport.h not only defines a type 'struct timeval'
but also defines a global variable 'timeval' of that type. The RVCT
compiler does not merge this definition into a common symbol, resulting
in duplicate definition errors in the final link. So remove the
variable definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Qin Long <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19135 6f19259b-4bc3-4df7-8a09-765794883524

CryptoPkg/Include/OpenSslSupport.h

index 64bef42d0595c33f281834d6f9489116cc9c68d1..239ae8bd6f417a5713a0bac652a366c6f37aa159 100644 (file)
@@ -139,7 +139,7 @@ struct tm {
 struct timeval {\r
   long tv_sec;      /* time value, in seconds */\r
   long tv_usec;     /* time value, in microseconds */\r
-} timeval;\r
+};\r
 \r
 struct dirent {\r
   UINT32  d_fileno;         /* file number of entry */\r