commit | b072739f8b68d1c9b6251e1e45e6824b99fb74a4 | [log] [tgz] |
---|---|---|
author | hillma <hillma@google.com> | Mon Mar 06 15:34:06 2017 |
committer | Commit bot <commit-bot@chromium.org> | Mon Mar 06 15:34:06 2017 |
tree | 6a136b918f84a57fb9789abc834a158221b42d38 | |
parent | e7811f5d698c1b04f32bae1c0e68f515d36a5e36 [diff] |
Check __GLIBC_PREREQ availability before use. BUG=webrtc:7287 Review-Url: https://codereview.webrtc.org/2727783004 Cr-Commit-Position: refs/heads/master@{#17070}
diff --git a/webrtc/system_wrappers/source/cpu_features_linux.c b/webrtc/system_wrappers/source/cpu_features_linux.c index f23d827..112ad03 100644 --- a/webrtc/system_wrappers/source/cpu_features_linux.c +++ b/webrtc/system_wrappers/source/cpu_features_linux.c
@@ -11,6 +11,9 @@ #include <stdlib.h> #include <string.h> #include <features.h> +#ifndef __GLIBC_PREREQ +#define __GLIBC_PREREQ(a, b) 0 +#endif #if __GLIBC_PREREQ(2, 16) #include <sys/auxv.h> #else