summaryrefslogtreecommitdiffstats
path: root/slirp/ip6.h
diff options
context:
space:
mode:
authorSamuel Thibault2019-01-27 02:20:57 +0100
committerSamuel Thibault2019-02-07 14:49:08 +0100
commit85a0e43c45f248e864cbf5fe0c95a8eb105e10ec (patch)
treeccfb1dce7d935ef4755684bbf42655a94e66d074 /slirp/ip6.h
parentslirp: replace qemu qtailq with slirp own copy (diff)
downloadqemu-85a0e43c45f248e864cbf5fe0c95a8eb105e10ec.tar.gz
qemu-85a0e43c45f248e864cbf5fe0c95a8eb105e10ec.tar.xz
qemu-85a0e43c45f248e864cbf5fe0c95a8eb105e10ec.zip
slirp: replace QEMU_BUILD_BUG_ON with G_STATIC_ASSERT
to remove another dependency on qemu. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'slirp/ip6.h')
-rw-r--r--slirp/ip6.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/ip6.h b/slirp/ip6.h
index 4e7c366505..5361bd7449 100644
--- a/slirp/ip6.h
+++ b/slirp/ip6.h
@@ -152,7 +152,7 @@ struct ip6_pseudohdr {
* If we marked the struct as packed then we would be unable to take
* the address of any of the fields in it.
*/
-QEMU_BUILD_BUG_ON(sizeof(struct ip6) != 40);
-QEMU_BUILD_BUG_ON(sizeof(struct ip6_pseudohdr) != 40);
+G_STATIC_ASSERT(sizeof(struct ip6) == 40);
+G_STATIC_ASSERT(sizeof(struct ip6_pseudohdr) == 40);
#endif