summaryrefslogtreecommitdiff
path: root/src/pcresearch.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-09-15 16:47:48 +0200
committerJim Meyering <meyering@redhat.com>2011-09-15 16:47:48 +0200
commite41f61a2fa00469f8462a9216a9aae5838f26629 (patch)
tree1471b05fff667cd089bf83b3ccf1a36952771d46 /src/pcresearch.c
parentadb4b2ca3aef27eb8991f8cb022a85964f4ad49e (diff)
downloadgrep-e41f61a2fa00469f8462a9216a9aae5838f26629.tar.gz
build: avoid compilation failure when building without PCRE support
* src/pcresearch.c [!HAVE_LIBPCRE] (WITHOUT_PCRE_NORETURN): Define to _Noreturn, not obsoleted-by-gnulib _GL_ATTRIBUTE_NORETURN. Reported by Eric Blake.
Diffstat (limited to 'src/pcresearch.c')
-rw-r--r--src/pcresearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcresearch.c b/src/pcresearch.c
index f8581e08..5ccc6269 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -103,7 +103,7 @@ Pcompile (char const *pattern, size_t size)
/* Pexecute is a no-return function when building --without-pcre. */
#if !HAVE_LIBPCRE
-# define WITHOUT_PCRE_NORETURN _GL_ATTRIBUTE_NORETURN
+# define WITHOUT_PCRE_NORETURN _Noreturn
#else
# define WITHOUT_PCRE_NORETURN /* empty */
#endif