svn rev #25274: trunk/src/ util/support/

hartmans@MIT.EDU hartmans at MIT.EDU
Wed Sep 28 16:59:42 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25274
Commit By: hartmans
Log Message:
Windows fix: add sys/cdefs.h to AC_CHECK_HEADERS and use guard macro

Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>


Changed Files:
U   trunk/src/configure.in
U   trunk/src/util/support/fnmatch.c
Modified: trunk/src/configure.in
===================================================================
--- trunk/src/configure.in	2011-09-28 20:57:53 UTC (rev 25273)
+++ trunk/src/configure.in	2011-09-28 20:59:42 UTC (rev 25274)
@@ -797,7 +797,7 @@
 rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H'])
 AC_SUBST(rpcent_define)
 
-AC_CHECK_HEADERS(sys/select.h sys/time.h unistd.h)
+AC_CHECK_HEADERS(sys/select.h sys/time.h unistd.h sys/cdefs.h)
 if test $ac_cv_header_sys_select_h = yes; then
   GSSRPC__SYS_SELECT_H='#include <sys/select.h>'
 else

Modified: trunk/src/util/support/fnmatch.c
===================================================================
--- trunk/src/util/support/fnmatch.c	2011-09-28 20:57:53 UTC (rev 25273)
+++ trunk/src/util/support/fnmatch.c	2011-09-28 20:59:42 UTC (rev 25274)
@@ -31,8 +31,9 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
-
+#ifdef HAVE_SYS_CDEFS_H
 #include <sys/cdefs.h>
+#endif
 #if defined(LIBC_SCCS) && !defined(lint)
 #if 0
 static char sccsid[] = "@(#)fnmatch.c	8.2 (Berkeley) 4/16/94";




More information about the cvs-krb5 mailing list