]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
windows fixes
authorMark Andrews <marka@isc.org>
Fri, 20 Jul 2012 08:12:14 +0000 (18:12 +1000)
committerMark Andrews <marka@isc.org>
Fri, 20 Jul 2012 08:12:14 +0000 (18:12 +1000)
lib/isc/include/isc/file.h
lib/isc/win32/include/isc/stat.h

index 41d7bfcb905e4b6c65faddd3c898368b6a515e6e..22a8539ad6a1089e27b21134d4465d572cb5b8b9 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdio.h>
 
 #include <isc/lang.h>
+#include <isc/stat.h>
 #include <isc/types.h>
 
 ISC_LANG_BEGINDECLS
index 2c822b9e7d751cc582e91423d4201ef381b465c5..6703e3297b59fc1cdaa8d7baa50bad1064a5cf62 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004, 2007, 2009  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2007, 2009, 2012  Internet Systems Consortium, Inc. ("ISC")
  * Copyright (C) 2000, 2001, 2003  Internet Software Consortium.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
 
 #include <sys/stat.h>
 
+/*
+ * Windows doesn't typedef this.
+ */
+typedef unsigned short mode_t;
+
 /* open() under unix allows setting of read/write permissions
  * at the owner, group and other levels.  These don't exist in NT
  * We'll just map them all to the NT equivalent