aboutsummaryrefslogtreecommitdiffstats
path: root/support/libc-config.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-05-07 13:37:19 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-05-07 13:37:19 +0300
commit6f5c5d212df15586e3aab33fbea64ac665b7c3f4 (patch)
tree85f8248c8a94f88de7d9c102668e09a3a22a9ec9 /support/libc-config.h
parent0791273b7440635339a87d25e1b433747d59bc64 (diff)
downloadegawk-6f5c5d212df15586e3aab33fbea64ac665b7c3f4.tar.gz
egawk-6f5c5d212df15586e3aab33fbea64ac665b7c3f4.tar.bz2
egawk-6f5c5d212df15586e3aab33fbea64ac665b7c3f4.zip
Really sync from GNULIB this time.
Diffstat (limited to 'support/libc-config.h')
-rw-r--r--support/libc-config.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/support/libc-config.h b/support/libc-config.h
index fcdafcb9..fabca2fa 100644
--- a/support/libc-config.h
+++ b/support/libc-config.h
@@ -33,9 +33,9 @@
#include <config.h>
/* On glibc this includes <features.h> and <sys/cdefs.h> and #defines
- _FEATURES_H, __WORDSIZE, and __set_errno. On FreeBSD 11 it
- includes <sys/cdefs.h> which defines __nonnull. Elsewhere it
- is harmless. */
+ _FEATURES_H, __WORDSIZE, and __set_errno. On FreeBSD 11 and
+ DragonFlyBSD 5.9 it includes <sys/cdefs.h> which defines __nonnull.
+ Elsewhere it is harmless. */
#include <errno.h>
/* From glibc <errno.h>. */
@@ -71,7 +71,7 @@
# endif
#endif
-#ifndef __attribute_maybe_unused__
+#ifndef __attribute_nonnull__
/* <sys/cdefs.h> either does not exist, or is too old for Gnulib.
Prepare to include <cdefs.h>, which is Gnulib's version of a
more-recent glibc <sys/cdefs.h>. */
@@ -80,13 +80,9 @@
# ifndef _FEATURES_H
# define _FEATURES_H 1
# endif
-/* Define __WORDSIZE so that <cdefs.h> does not attempt to include
- nonexistent files. Make it a syntax error, since Gnulib does not
- use __WORDSIZE now, and if Gnulib uses it later the syntax error
- will let us know that __WORDSIZE needs configuring. */
-# ifndef __WORDSIZE
-# define __WORDSIZE %%%
-# endif
+/* Define __GNULIB_CDEFS so that <cdefs.h> does not attempt to include
+ nonexistent files. */
+# define __GNULIB_CDEFS
/* Undef the macros unconditionally defined by our copy of glibc
<sys/cdefs.h>, so that they do not clash with any system-defined
versions. */