summaryrefslogtreecommitdiff
path: root/custom.h
diff options
context:
space:
mode:
Diffstat (limited to 'custom.h')
-rw-r--r--custom.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/custom.h b/custom.h
index 468c1a50..8d375c89 100644
--- a/custom.h
+++ b/custom.h
@@ -53,6 +53,13 @@
#endif
#endif
+/* This keeps regex happy on non-GCC compilers */
+#ifndef __GNUC__
+#ifndef __builtin_expect
+#define __builtin_expect(expr, val) (expr)
+#endif
+#endif
+
/* For QNX, based on submission from Michael Hunter, mphunter@qnx.com */
#ifdef __QNX__
#define GETPGRP_VOID 1