This fixes the Solaris build; reported by "Rodney".
Also clean up #includes in compat.c; there's no need for them to be
hidden within the various ifdef blocks. Leave <sys/time.h> where it was,
just in case it's problematic on some platform. The rest are already
included unconditionally in other files, so should be fine.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
* Boston, MA 02110-1301 USA
*/
+#include <string.h>
+#include <stdarg.h>
+#include <errno.h>
+#include <ctype.h>
+
#include "openconnect-internal.h"
#ifdef __sun__
#endif
#ifndef HAVE_ASPRINTF
-#include <stdarg.h>
-#include <errno.h>
static int oc_vasprintf(char **strp, const char *fmt, va_list ap)
{
#endif
#ifndef HAVE_STRCASESTR
-#include <ctype.h>
char *openconnect__strcasestr(const char *haystack, const char *needle)
{
*/
#include <errno.h>
+#include <string.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
<ul>
<li><b>OpenConnect HEAD</b>
<ul>
+ <li>Fix Solaris build breakage due to missing <tt>&lt;string.h&gt;</tt> includes.</li>
<li>Include path in <tt>&lt;group-access&gt;</tt> node.</li>
</ul><br/>
</li>