From: Pablo de Lara Date: Wed, 5 Oct 2016 02:45:51 +0000 (+0100) Subject: cryptodev: fix build on Suse 11 SP2 X-Git-Tag: spdx-start~5698 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=afc5dffaa0ccc7984d4504bb785d7265ccb96f5c;p=dpdk.git cryptodev: fix build on Suse 11 SP2 This commit fixes following build error, which happens in SUSE 11 SP2, with gcc 4.5.1: In file included from lib/librte_cryptodev/rte_cryptodev.c:70:0: lib/librte_cryptodev/rte_cryptodev.h:772:7: error: flexible array member in otherwise empty struct Fixes: 347a1e037fd3 ("lib: use C99 syntax for zero-size arrays") Signed-off-by: Pablo de Lara Acked-by: Adrien Mazarguil --- diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index d9c8d46146..232f34a64b 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -773,7 +773,7 @@ struct rte_cryptodev_sym_session { } __rte_aligned(8); /**< Public symmetric session details */ - char _private[]; + __extension__ char _private[0]; /**< Private session material */ };