changeset 37168:8f415d62517a

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 <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Sat, 07 Sep 2013 07:23:32 -0600
parents 71c6a04a36da
children 79c9962d8732
files ChangeLog lib/glob.in.h
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Sep 06 05:36:05 2013 -0700
+++ b/ChangeLog	Sat Sep 07 07:23:32 2013 -0600
@@ -1,3 +1,8 @@
+2013-09-07  Eric Blake  <eblake@redhat.com>
+
+	glob: fix build for platforms without __THROW
+	* lib/glob.in.h (__THROW): Add definition again.
+
 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
 
 	regex-quote: fix buffer access out of bounds
--- a/lib/glob.in.h	Fri Sep 06 05:36:05 2013 -0700
+++ b/lib/glob.in.h	Sat Sep 07 07:23:32 2013 -0600
@@ -40,6 +40,8 @@
 #  define __END_DECLS
 # endif
 #endif
+#ifndef __THROW
+# define __THROW
 #ifndef __THROWNL
 # define __THROWNL
 #endif