about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-11-19 23:22:07 +0000
committerUlrich Drepper <drepper@redhat.com>1997-11-19 23:22:07 +0000
commit5cce0f327c97ce8490991e574080c701a085520c (patch)
tree88ec56b6264fc4b5d7ace6d63cecb1ff6d962086
parentfd23e93905debe69ffd66eede32349155c4ecc69 (diff)
downloadglibc-5cce0f327c97ce8490991e574080c701a085520c.tar.gz
glibc-5cce0f327c97ce8490991e574080c701a085520c.tar.xz
glibc-5cce0f327c97ce8490991e574080c701a085520c.zip
Define GLOB_ABORTED and GLOB_ABEND only if __USE_GNU.
-rw-r--r--posix/glob.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/posix/glob.h b/posix/glob.h
index 49a7b7cfe6..d55f1497b4 100644
--- a/posix/glob.h
+++ b/posix/glob.h
@@ -65,9 +65,15 @@ extern "C"
 
 /* Error returns from `glob'.  */
 #define	GLOB_NOSPACE	1	/* Ran out of memory.  */
-#define	GLOB_ABEND	2	/* Read error.  */
+#define	GLOB_ABORTED	2	/* Read error.  */
 #define	GLOB_NOMATCH	3	/* No matches found.  */
 
+#ifdef _GNU_SOURCE
+/* Previous versions of this file defined GLOB_ABEND instead of
+   GLOB_ABORTED.  Provide a compatibility definition here.  */
+#define GLOB_ABEND GLOB_ABORTED
+#endif
+
 /* Structure describing a globbing run.  */
 #if !defined (_AMIGA) && !defined (VMS) /* Buggy compiler.   */
 struct stat;