Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Unified Diff: webrtc/system_wrappers/source/cpu_features_linux.c

Issue 2727783004: Check __GLIBC_PREREQ availability before use. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/system_wrappers/source/cpu_features_linux.c
diff --git a/webrtc/system_wrappers/source/cpu_features_linux.c b/webrtc/system_wrappers/source/cpu_features_linux.c
index f23d827b71a3195752e12a2661ba155a942900a9..112ad038ae8d164ea5cd5355f4ac785e2ca6519f 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698