From: Ulrich Drepper Date: Wed, 19 Nov 1997 23:22:07 +0000 (+0000) Subject: Define GLOB_ABORTED and GLOB_ABEND only if __USE_GNU. X-Git-Tag: cvs/glibc-2_0_6-pre2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cce0f327c97ce8490991e574080c701a085520c;p=thirdparty%2Fglibc.git Define GLOB_ABORTED and GLOB_ABEND only if __USE_GNU. --- diff --git a/posix/glob.h b/posix/glob.h index 49a7b7cfe6b..d55f1497b48 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;