aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/glibc-versions-hack.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-06 17:41:57 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-06 18:10:17 -0800
commit15ce587fa20c9c34413c2b99e0187d3e3072f943 (patch)
tree950056e7bf5222d22f9b6e450d08aa72d7102ee5 /src/bun.js/bindings/glibc-versions-hack.cpp
parent20a4b72ff42d2ac030751ea6a589f36377442786 (diff)
downloadbun-15ce587fa20c9c34413c2b99e0187d3e3072f943.tar.gz
bun-15ce587fa20c9c34413c2b99e0187d3e3072f943.tar.zst
bun-15ce587fa20c9c34413c2b99e0187d3e3072f943.zip
Update glibc-versions-hack.cpp
Diffstat (limited to 'src/bun.js/bindings/glibc-versions-hack.cpp')
-rw-r--r--src/bun.js/bindings/glibc-versions-hack.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bun.js/bindings/glibc-versions-hack.cpp b/src/bun.js/bindings/glibc-versions-hack.cpp
index 73b096011..eae53429a 100644
--- a/src/bun.js/bindings/glibc-versions-hack.cpp
+++ b/src/bun.js/bindings/glibc-versions-hack.cpp
@@ -8,6 +8,10 @@
#include <errno.h>
#include <dlfcn.h>
+#ifndef UNLIKELY
+#define UNLIKELY(x) __builtin_expect(!!(x), 0)
+#endif
+
#ifndef _STAT_VER
#if defined(__aarch64__)
#define _STAT_VER 0