diff --git a/aarch64/corefreqm.c b/aarch64/corefreqm.c index dd4b6031..8f121f34 100644 --- a/aarch64/corefreqm.c +++ b/aarch64/corefreqm.c @@ -4,6 +4,7 @@ * Licenses: GPL2 */ +#define _GNU_SOURCE #include #include #include diff --git a/aarch64/coretypes.h b/aarch64/coretypes.h index 6df2e5c6..7959adf3 100644 --- a/aarch64/coretypes.h +++ b/aarch64/coretypes.h @@ -662,10 +662,12 @@ enum OFFLINE OS }; -typedef struct -{ - unsigned int Q : 8-0, - R : 32-8; +typedef union { + struct + { + unsigned int Q : 8-0, + R : 32-8; + }; } COF_ST; typedef struct diff --git a/x86_64/corefreqm.c b/x86_64/corefreqm.c index 652ba1d8..19bc46cc 100644 --- a/x86_64/corefreqm.c +++ b/x86_64/corefreqm.c @@ -4,6 +4,7 @@ * Licenses: GPL2 */ +#define _GNU_SOURCE #include #include #include