From: Alistair Francis Date: Wed, 2 Oct 2019 17:00:40 +0000 (-0700) Subject: string/endian.h: Restore the __USE_MISC conditionals X-Git-Tag: upstream/2.34~2745 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0095a3e8d6fe89ff2bcfc83bbe190c0106dd4111;p=platform%2Fupstream%2Fglibc.git string/endian.h: Restore the __USE_MISC conditionals Commit 69fd157a3 "time: Add padding for the timespec if required" caused a breakage in the glibc tests as the endian.h include file was kept in the networking headers while the __USE_MISC #ifdefs had been removed. This resulted in namespace violations in the networking headers. This patche restores the __USE_MISC conditionals in endian.h to fix the test failures. * string/endian.h: Restore the __USE_MISC conditionals. --- diff --git a/ChangeLog b/ChangeLog index 893c07c..c0d97f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2019-10-02 Alistair Francis + + * string/endian.h: Restore the __USE_MISC conditionals. + 2019-10-02 Joseph Myers * string/tester.c: Ignore -Warray-bounds and diff --git a/string/endian.h b/string/endian.h index 0eb534e..1a9fe3c 100644 --- a/string/endian.h +++ b/string/endian.h @@ -23,12 +23,14 @@ /* Get the definitions of __*_ENDIAN, __BYTE_ORDER, and __FLOAT_WORD_ORDER. */ #include -#define LITTLE_ENDIAN __LITTLE_ENDIAN -#define BIG_ENDIAN __BIG_ENDIAN -#define PDP_ENDIAN __PDP_ENDIAN -#define BYTE_ORDER __BYTE_ORDER +#ifdef __USE_MISC +# define LITTLE_ENDIAN __LITTLE_ENDIAN +# define BIG_ENDIAN __BIG_ENDIAN +# define PDP_ENDIAN __PDP_ENDIAN +# define BYTE_ORDER __BYTE_ORDER +#endif -#ifndef __ASSEMBLER__ +#if defined __USE_MISC && !defined __ASSEMBLER__ /* Conversion interfaces. */ # include # include