view src/libircclient-1-fixes.patch @ 2661:3567da505594

json-c update to version 0.10, using github downloads. Squashed commit of the following: commit a93e1e80e4a6b668009bd024923e387f71eff7a3 Author: Thomas Mayer <thomas@residuum.org> Date: Tue Jul 17 23:16:59 2012 +0200 Patches for: - missing file - remove check for rpl_* functions commit ad94ec0c30381acb9ac25db96182a1308b9fbd3c Author: Thomas Mayer <thomas@residuum.org> Date: Tue Jul 17 19:08:40 2012 +0200 Fixed indentation commit 78b51e08e5174454495b8df547c4bccdc06bef73 Author: Thomas Mayer <thomas@residuum.org> Date: Tue Jul 17 01:13:08 2012 +0200 json-c compiles correctly (finally). commit 0c4bb3a6b4b6db1ac6a6d098ce55041db55bc8ab Author: Thomas Mayer <thomas@residuum.org> Date: Fri Jul 13 22:16:41 2012 +0200 Changes to json-c files according to current MXE standards. commit a533fe5439d56de76c2d3b9d634c597cba94ff52 Author: Thomas Mayer <thomas@residuum.org> Date: Thu Jul 12 22:27:54 2012 +0200 Update to json-c 0.10, and use github repository.
author Thomas Mayer <thomas@residuum.org>
date Tue, 17 Jul 2012 23:18:18 +0200
parents 99516e73b368
children
line wrap: on
line source

This file is part of MXE.
See index.html for further information.

Contains ad hoc patches for cross building.

From 06b27e262de1d156ea31b52762ed372211b72de9 Mon Sep 17 00:00:00 2001
From: MXE
Date: Mon, 23 Jan 2012 08:26:14 +0100
Subject: [PATCH 1/2] use the proper WIN32 define


diff --git a/examples/censor.cpp b/examples/censor.cpp
index 0c15f4c..c784040 100644
--- a/examples/censor.cpp
+++ b/examples/censor.cpp
@@ -32,7 +32,7 @@
 #include <errno.h>
 #include <string.h>
 
-#if !defined (WIN32)
+#if !defined (_WIN32)
 	#include <unistd.h>
 #endif
 
diff --git a/examples/irctest.c b/examples/irctest.c
index bd6dbc3..08d2ba7 100644
--- a/examples/irctest.c
+++ b/examples/irctest.c
@@ -51,7 +51,7 @@ void addlog (const char * fmt, ...)
 	va_list va_alist;
 
 	va_start (va_alist, fmt);
-#if defined (WIN32)
+#if defined (_WIN32)
 	_vsnprintf (buf, sizeof(buf), fmt, va_alist);
 #else
 	vsnprintf (buf, sizeof(buf), fmt, va_alist);
diff --git a/examples/spammer.c b/examples/spammer.c
index ae9c2c7..2a0861b 100644
--- a/examples/spammer.c
+++ b/examples/spammer.c
@@ -17,7 +17,7 @@
 #include <errno.h>
 #include <string.h>
 
-#if defined (WIN32)
+#if defined (_WIN32)
 	#include <windows.h>
 
 	#define CREATE_THREAD(id,func,param)	(CreateThread(0, 0, func, param, 0, id) == 0)
diff --git a/include/libircclient.h b/include/libircclient.h
index 2dcd44c..af7d769 100644
--- a/include/libircclient.h
+++ b/include/libircclient.h
@@ -44,7 +44,7 @@
 #ifndef INCLUDE_LIBIRC_H
 #define INCLUDE_LIBIRC_H
 
-#if !defined (WIN32)
+#if !defined (_WIN32)
 	#include <sys/select.h>	/* fd_set */
 #else
 	#include <winsock2.h>
-- 
1.7.8.3


From 1a54c4dda67b99c1c0c0c68b45a395b741cb7030 Mon Sep 17 00:00:00 2001
From: MXE
Date: Sun, 22 Jan 2012 22:39:23 +0100
Subject: [PATCH 2/2] fix missing header


diff --git a/include/libircclient.h b/include/libircclient.h
index af7d769..57c8516 100644
--- a/include/libircclient.h
+++ b/include/libircclient.h
@@ -131,6 +131,7 @@ typedef void (*irc_dcc_callback_t) (irc_session_t * session, irc_dcc_t id, int s
 #include "libirc_errors.h"
 #include "libirc_events.h"
 #include "libirc_options.h"
+#include "libirc_rfcnumeric.h"
 #undef IN_INCLUDE_LIBIRC_H
 
 
-- 
1.7.8.3