[bprobe] Fix gcc visibility issue
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Subject: [bprobe] Fix gcc visibility issue
- Date: Tue, 24 Mar 2009 19:18:17 -0400 (EDT)
commit b8b9f48a92c11bba39dd1f393bd24f2a18a2233b
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Mar 24 19:14:52 2009 -0400
Fix gcc visibility issue
Recent versions of gcc (rightfully) don't like the visibility pragma
before standard includes.
---
bprobe-private.h | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/bprobe-private.h b/bprobe-private.h
index c8554e3..8d9a590 100644
--- a/bprobe-private.h
+++ b/bprobe-private.h
@@ -107,10 +107,6 @@
else
-/* Probes should only export symbols marked as PROBE */
-
-#pragma GCC visibility push(hidden)
-
/* Headers */
@@ -137,6 +133,11 @@
#include <dlfcn.h>
+/* Probes should only export symbols marked as PROBE */
+
+#pragma GCC visibility push(hidden)
+
+
/* Prototypes */
BPROBE_ATTRIBUTE_UNUSED
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]