From 465099e8fbb10768d061f36946eb94ccea37d98a Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Sat, 7 Sep 2013 07:23:32 -0600 Subject: [PATCH] glob: fix build for platforms without __THROW The previous fix for glibc broke builds on non-glibc platforms that don't pre-define __THROW. Perhaps we could make the code more optimal by using gcc attributes instead of expanding to nothing, to match the glibc usage; but for now this fixes the build. Reproted by Tom G. Christensen. * lib/glob.in.h (__THROW): Add definition again. Signed-off-by: Eric Blake --- ChangeLog | 5 +++++ lib/glob.in.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5ef6557e2..efc03d17e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-09-07 Eric Blake + + glob: fix build for platforms without __THROW + * lib/glob.in.h (__THROW): Add definition again. + 2013-09-04 Anton Ovchinnikov (tiny change) regex-quote: fix buffer access out of bounds diff --git a/lib/glob.in.h b/lib/glob.in.h index c242d97b3..73cbaa5bc 100644 --- a/lib/glob.in.h +++ b/lib/glob.in.h @@ -40,6 +40,8 @@ # define __END_DECLS # endif #endif +#ifndef __THROW +# define __THROW #ifndef __THROWNL # define __THROWNL #endif -- 2.11.0