mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Don't allow linking with _obstack.
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
# include <obstack.h>
|
# include <obstack.h>
|
||||||
|
# include <shlib-compat.h>
|
||||||
#else
|
#else
|
||||||
# include "obstack.h"
|
# include "obstack.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -96,10 +97,13 @@ int obstack_exit_failure = EXIT_FAILURE;
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef _LIBC
|
# ifdef _LIBC
|
||||||
|
# if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)
|
||||||
/* A looong time ago (before 1994, anyway; we're not sure) this global variable
|
/* A looong time ago (before 1994, anyway; we're not sure) this global variable
|
||||||
was used by non-GNU-C macros to avoid multiple evaluation. The GNU C
|
was used by non-GNU-C macros to avoid multiple evaluation. The GNU C
|
||||||
library still exports it because somebody might use it. */
|
library still exports it because somebody might use it. */
|
||||||
struct obstack *_obstack;
|
struct obstack *_obstack_compat;
|
||||||
|
compat_symbol (libc, _obstack_compat, _obstack, GLIBC_2_0);
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* Define a macro that either calls functions with the traditional malloc/free
|
/* Define a macro that either calls functions with the traditional malloc/free
|
||||||
|
Reference in New Issue
Block a user