efi-boot-shim/Cryptlib/Include
Gary Lin 1b5dbc4b4d Cryptlib: Include stddef.h in CrtLibSupport.h
The changes in the openssl headers cause the inclusion of
CrtLibSupport.h eariler than the inclusion of stddef.h, so "offsetof"
was defined twice and this caused the followling build error:

In file included from Cryptlib/Include/openssl/buffer.h:23:0,
                 from Cryptlib/Include/openssl/x509.h:22,
                 from shim.c:56:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stddef.h:417:0: error: "offsetof" redefined [-Werror]
 #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)

In file included from Cryptlib/Include/limits.h:15:0,
                 from Cryptlib/Include/openssl/ossl_typ.h:13,
                 from Cryptlib/Include/openssl/x509.h:20,
                 from shim.c:56:
Cryptlib/Include/CrtLibSupport.h:192:0: note: this is the location of the previous definition
 #define offsetof(type, member) ( (int) & ((type*)0) -> member )

We can lower the priority of the gcc include path or just remove the
path, but this might cause problem since the path was introduced on
purpose(*). Instead, including stddef.h first is more feasible.

(*) d51739a416

Signed-off-by: Gary Lin <glin@suse.com>
2017-08-31 15:14:20 -04:00
..
arpa Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
netinet Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
openssl Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
Protocol Add crypto libraries 2012-06-18 17:49:57 -04:00
sys Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
assert.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
ctype.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
dirent.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
errno.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
limits.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
malloc.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
math.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
memory.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
netdb.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
OpenSslSupport.h Cryptlib: Include stddef.h in CrtLibSupport.h 2017-08-31 15:14:20 -04:00
sgtty.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
signal.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
stdarg.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
stddef.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
stdio.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
stdlib.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
string.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
strings.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
syslog.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
time.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00
unistd.h Revert lots of Cryptlib updates. 2017-08-31 15:13:58 -04:00