[pkg-otr-team] [irssi-plugin-otr] 23/167: Patch for cross-compiling to get g_fopen right.

Holger Levsen holger at moszumanska.debian.org
Mon Mar 3 21:55:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to tag 4.0.0
in repository irssi-plugin-otr.

commit a1a250abbd572a80074a2ba0faf1b858b97d0d93
Author: cypherpunk <cypherpunk>
Date:   Mon Jul 24 16:56:12 2006 +0000

    Patch for cross-compiling to get g_fopen right.
---
 otr-plugin.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/otr-plugin.c b/otr-plugin.c
index 77c4df8..d9c7da7 100644
--- a/otr-plugin.c
+++ b/otr-plugin.c
@@ -64,6 +64,11 @@
  * On other platforms, it's also safe to use it.  If we're not using
  * glib, just use fopen. */
 #ifdef USING_GTK
+/* If we're cross-compiling, this might be wrong, so fix it. */
+#ifdef WIN32
+#undef G_OS_UNIX
+#define G_OS_WIN32
+#endif
 #include <glib/gstdio.h>
 #else
 #define g_fopen fopen

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-otr/packages/irssi-plugin-otr.git



More information about the Pkg-otr-team mailing list