diff --git a/bsps/include/grlib/ambapp.h b/bsps/include/grlib/ambapp.h index 1afd802860..e359a1d8ef 100644 --- a/bsps/include/grlib/ambapp.h +++ b/bsps/include/grlib/ambapp.h @@ -36,6 +36,8 @@ #include +#include + /* Include VENDOR and DEVICE definitions */ #include "ambapp_ids.h" @@ -102,7 +104,7 @@ struct ambapp_dev { unsigned short device; /* Device ID */ /* Device info (APB/AHB dep. on type) */ - struct ambapp_common_info devinfo[0]; + struct ambapp_common_info devinfo[RTEMS_ZERO_LENGTH_ARRAY]; }; /* Describes a complete AMBA Core. Each device may consist of 3 interfaces */