aboutsummaryrefslogtreecommitdiffstats
path: root/support/libc-config.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-07-26 14:35:39 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-07-26 14:35:39 +0300
commitf64f8374a30150ac61281671e491cf256392baae (patch)
tree5b3ce167d83f8b61ebf464b2ca648063130ff35c /support/libc-config.h
parent6cbefa3cfa7a494257478747b5c3b85eb6c0607e (diff)
parent05c0e575439cd42a712ad1d626886ec3ea74e9bb (diff)
downloadegawk-f64f8374a30150ac61281671e491cf256392baae.tar.gz
egawk-f64f8374a30150ac61281671e491cf256392baae.tar.bz2
egawk-f64f8374a30150ac61281671e491cf256392baae.zip
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'support/libc-config.h')
-rw-r--r--support/libc-config.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/support/libc-config.h b/support/libc-config.h
index f24fbfa6..59cfbe5c 100644
--- a/support/libc-config.h
+++ b/support/libc-config.h
@@ -1,6 +1,6 @@
/* System definitions for code taken from the GNU C Library
- Copyright 2017-2019 Free Software Foundation, Inc.
+ Copyright 2017-2020 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -55,8 +55,17 @@
#ifndef __glibc_clang_prereq
# if defined __clang_major__ && defined __clang_minor__
-# define __glibc_clang_prereq(maj, min) \
- ((maj) < __clang_major__ + ((min) <= __clang_minor__))
+# ifdef __apple_build_version__
+/* Apple for some reason renumbers __clang_major__ and __clang_minor__.
+ Gnulib code uses only __glibc_clang_prereq (3, 5); map it to
+ 6000000 <= __apple_build_version__. Support for other calls to
+ __glibc_clang_prereq can be added here as needed. */
+# define __glibc_clang_prereq(maj, min) \
+ ((maj) == 3 && (min) == 5 ? 6000000 <= __apple_build_version__ : 0)
+# else
+# define __glibc_clang_prereq(maj, min) \
+ ((maj) < __clang_major__ + ((min) <= __clang_minor__))
+# endif
# else
# define __glibc_clang_prereq(maj, min) 0
# endif
@@ -171,4 +180,5 @@
/* A substitute for glibc <shlib-compat.h>, good enough for Gnulib. */
#define SHLIB_COMPAT(lib, introduced, obsoleted) 0
-#define versioned_symbol(lib, local, symbol, version)
+#define compat_symbol(lib, local, symbol, version) extern int dummy
+#define versioned_symbol(lib, local, symbol, version) extern int dummy