[Pkg-privacy-commits] [pidgin-otr] 23/255: Patch for cross-compiling to get g_fopen right.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:51:17 UTC 2015


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

infinity0 pushed a commit to branch experimental
in repository pidgin-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-privacy/packages/pidgin-otr.git



More information about the Pkg-privacy-commits mailing list