dnl check for libspamc required includes
+dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([AC_SPAMASSASSIN],
[dnl
AC_CACHE_CHECK([for SHUT_RD],
spamassassin_cv_has_shutrd, [
AC_TRY_COMPILE([#include <sys/types.h>
+#include <stdio.h>
#include <sys/socket.h>],
[printf ("%d", SHUT_RD); return 0;],
[spamassassin_cv_has_shutrd=yes],
AC_CACHE_CHECK([for h_errno],
spamassassin_cv_has_herrno, [
- AC_TRY_COMPILE([#include <netdb.h>],
+ AC_TRY_COMPILE([#include <netdb.h>
+#include <stdio.h>
+],
[printf ("%d", h_errno); return 0;],
[spamassassin_cv_has_herrno=yes],
[spamassassin_cv_has_herrno=no]),