aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorChristoph Scholtes <[email protected]>2011-11-05 11:16:01 -0600
committerChristoph Scholtes <[email protected]>2011-11-05 11:16:01 -0600
commit1e8110e753937138b7b6265a1da3617931083adc (patch)
tree07706f708d6e946cf9d369a41187aa86518872e5 /nt
parent3ad924ba1e1c949affba4c5832072e4c5c194202 (diff)
Fix definition of `mode_t'.
Diffstat (limited to 'nt')
-rw-r--r--nt/config.nt8
1 files changed, 3 insertions, 5 deletions
diff --git a/nt/config.nt b/nt/config.nt
index 0d8a2b49a7..3a06a9f5b7 100644
--- a/nt/config.nt
+++ b/nt/config.nt
@@ -345,11 +345,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
# define restrict
#endif
-/* Define to `int' if <sys/types.h> does not define. */
-#ifdef __GNUC__
-/* No action required for gcc */
-#else /* MSVC */
-#define mode_t int
+/* `mode_t' is not defined for MSVC. Define. */
+#ifdef _MSC_VER
+typedef unsigned short mode_t;
#endif
/* A va_copy replacement for MSVC. */