This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Don't include <link.h> if __BIONIC__ is defined
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Cc: Maxim Kuvyrkov <maxim at codesourcery dot com>
- Date: Mon, 6 Sep 2010 14:18:57 -0700
- Subject: PATCH: Don't include <link.h> if __BIONIC__ is defined
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
Bionic C library doesn't have <link.h>. OK for trunk?
Thanks.
H.J.
---
2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
* unwind-dw2-fde-glibc.c: Don't include <link.h> if __BIONIC__
is defined.
diff --git a/gcc/unwind-dw2-fde-glibc.c b/gcc/unwind-dw2-fde-glibc.c
index b8a7312..d2a591e 100644
--- a/gcc/unwind-dw2-fde-glibc.c
+++ b/gcc/unwind-dw2-fde-glibc.c
@@ -32,7 +32,7 @@
#include "tconfig.h"
#include "tsystem.h"
-#ifndef inhibit_libc
+#if !defined(inhibit_libc) && !defined(__BIONIC__)
#include <link.h>
#endif
#include "coretypes.h"