[glom] Hide another __libc_freeres on systems which don't have glibc.
- From: Jasper Lievisse Adriaanse <jasperla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Hide another __libc_freeres on systems which don't have glibc.
- Date: Sun, 16 Oct 2011 17:51:15 +0000 (UTC)
commit af9f209eab099458cc4d92c9170757c78b11b1b1
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date: Sat Oct 15 09:33:34 2011 +0200
Hide another __libc_freeres on systems which don't have glibc.
https://bugzilla.gnome.org/show_bug.cgi?id=660496
ChangeLog | 10 ++++++++++
tests/python/test_python_module.cc | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1f9d95f..a20620f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-10-15 Jasper Lievisse Adriaanse <jasperla gnome org>
+
+ Remove glibc-specific function call.
+
+ * tests/python/test_python_module.cc: Fix build on OpenBSD (and
+ other non-glibc systems) by wrapping calls to __libc_freeres() in
+ correct #ifdefs.
+ Bug #660496
+
+
2011-10-14 Murray Cumming <murrayc murrayc com>
Fix DTD to fix make check.
diff --git a/tests/python/test_python_module.cc b/tests/python/test_python_module.cc
index 19bb685..0fd4b7e 100644
--- a/tests/python/test_python_module.cc
+++ b/tests/python/test_python_module.cc
@@ -5,7 +5,7 @@
#include "config.h"
#include "glom/python_embed/glom_python.h"
-#ifndef G_OS_WIN32
+#ifdef __linux__
extern "C" void __libc_freeres(void);
#endif
@@ -43,7 +43,7 @@ bool gda_python_module_is_available()
int main ()
{
-#ifndef G_OS_WIN32
+#ifdef __linux__
atexit(__libc_freeres);
#endif
Glom::libglom_init(); // Calls PyInitialize()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]