Check for res_ndestroy.

This commit is contained in:
Jonathan Schleifer 2011-05-26 22:42:16 +02:00
parent 8af66a155c
commit ec3e12b62a
18 changed files with 72 additions and 0 deletions

View file

@ -25,4 +25,5 @@ INCLUDES = ${SRCS:.m=.h} \
include ../buildsys.mk
CPPFLAGS += -I.. -DHAVE_CONFIG_H
LD = ${OBJC}

View file

@ -20,6 +20,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "XMPPAuthenticator.h"
@implementation XMPPAuthenticator

View file

@ -21,6 +21,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#define XMPP_CONNECTION_M
#include <assert.h>

View file

@ -20,6 +20,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "XMPPExceptions.h"
@implementation XMPPException

View file

@ -21,6 +21,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "namespaces.h"
#import "XMPPIQ.h"

View file

@ -21,6 +21,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stringprep.h>
#import "XMPPJID.h"

View file

@ -21,6 +21,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "XMPPMessage.h"
#import "namespaces.h"

View file

@ -20,6 +20,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "XMPPPLAINAuth.h"
#import "XMPPExceptions.h"

View file

@ -21,6 +21,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "XMPPPresence.h"
#import "namespaces.h"

View file

@ -20,6 +20,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <assert.h>
#import "XMPPRoster.h"

View file

@ -20,6 +20,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "XMPPRosterItem.h"
@implementation XMPPRosterItem

View file

@ -21,6 +21,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <string.h>
#include <assert.h>

View file

@ -21,6 +21,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <assert.h>
#include <netinet/in.h>
@ -239,7 +243,9 @@
}
} @finally {
[self freeMemory: answer];
#ifdef HAVE_RES_NDESTROY
res_ndestroy(&resState);
#endif
}
[pool release];

View file

@ -21,6 +21,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "XMPPStanza.h"
#import "XMPPJID.h"
#import "namespaces.h"