]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_cryptodev/rte_cryptodev_pmd.h
lib: work around unnamed structs/unions
[dpdk.git] / lib / librte_cryptodev / rte_cryptodev_pmd.h
index 7d049ea38b8d3a661aae98b7e72f2d30b90f7f99..a929ef1d1d252c73d2b8cae3d2b65d0851f3a3fc 100644 (file)
@@ -52,6 +52,7 @@ extern "C" {
 #include <rte_mbuf.h>
 #include <rte_mempool.h>
 #include <rte_log.h>
+#include <rte_common.h>
 
 #include "rte_crypto.h"
 #include "rte_cryptodev.h"
@@ -65,13 +66,14 @@ extern "C" {
 #endif
 
 struct rte_cryptodev_session {
+       RTE_STD_C11
        struct {
                uint8_t dev_id;
                enum rte_cryptodev_type type;
                struct rte_mempool *mp;
        } __rte_aligned(8);
 
-       char _private[0];
+       __extension__ char _private[0];
 };
 
 struct rte_cryptodev_driver;