]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define GLOB_ABORTED and GLOB_ABEND only if __USE_GNU.
authorUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:22:07 +0000 (23:22 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:22:07 +0000 (23:22 +0000)
posix/glob.h

index 49a7b7cfe6b4ff82bc6911d7225cd1fcc278dc3f..d55f1497b48f50b34f8cd3b5df0601dcf1d719cf 100644 (file)
@@ -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;