]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: work around broken sasl header
authorEric Blake <eblake@redhat.com>
Wed, 29 May 2013 19:57:01 +0000 (13:57 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 29 May 2013 20:07:53 +0000 (14:07 -0600)
Compilation on cygwin failed due to a bug in the sasl headers
present on that platform (libsasl2-devel 2.1.26):

In file included from rpc/virnetserverclient.c:27:0:
/usr/include/sasl/sasl.h:230:38: error: expected declaration specifiers or '...' before 'size_t'

Upstream is aware of their bug:
https://bugzilla.cyrusimap.org/show_bug.cgi?id=3759

* src/rpc/virnetserverclient.c (includes): Ensure size_t is
defined before using sasl.h.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/rpc/virnetserverclient.c

index 0bd88ad0e900ff340c01c5ab1011b979b7b1b204..2fc48386cbe43490bdfe956282058b84e0f6b304 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * virnetserverclient.c: generic network RPC server client
  *
- * Copyright (C) 2006-2011 Red Hat, Inc.
+ * Copyright (C) 2006-2013 Red Hat, Inc.
  * Copyright (C) 2006 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -23,6 +23,7 @@
 
 #include <config.h>
 
+#include "internal.h"
 #if WITH_SASL
 # include <sasl/sasl.h>
 #endif