]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_memzone.h
lib: work around unnamed structs/unions
[dpdk.git] / lib / librte_eal / common / include / rte_memzone.h
index dae98f5b0f4e221578fbc482ad17418ec9e9d42b..8e42cae2a5a688540b230db259dc7d27b6606cbf 100644 (file)
@@ -53,6 +53,7 @@
 
 #include <stdio.h>
 #include <rte_memory.h>
+#include <rte_common.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -78,6 +79,7 @@ struct rte_memzone {
        char name[RTE_MEMZONE_NAMESIZE];  /**< Name of the memory zone. */
 
        phys_addr_t phys_addr;            /**< Start physical address. */
+       RTE_STD_C11
        union {
                void *addr;                   /**< Start virtual address. */
                uint64_t addr_64;             /**< Makes sure addr is always 64-bits */