Add #ifdef _WIN32 in places where we had #ifdef _MSDOS
authorTheodore Tso <tytso@mit.edu>
Wed, 12 Jun 1996 05:09:39 +0000 (05:09 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 12 Jun 1996 05:09:39 +0000 (05:09 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8314 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/keytab/file/ChangeLog
src/lib/krb5/keytab/file/ser_ktf.c

index 3957f037f338a73697044dd57c895440b6828841..58112dcccc36a37eda300e5f7388121b0362b0dd 100644 (file)
@@ -1,3 +1,7 @@
+Wed Jun 12 01:09:01 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * ser_ktf.c: Add #ifdef _WIN32 in places where we had #ifdef _MSDOS
+
 Thu May  9 03:05:51 1996  Richard Basch  <basch@lehman.com>
 
        * ktf_g_ent.c (krb5_ktfile_get_entry): don't skip over keytab
index aadc71ee1711e4856b30ec1b5de4a852fb1da141..3be699b8bb99048b5ec7dfd9a97d72f84ed26bf3 100644 (file)
@@ -163,7 +163,7 @@ krb5_ktf_keytab_externalize(kcontext, arg, buffer, lenremain)
                        int     fflags = 0;
 
                        file_is_open = 1;
-#if !defined( _MACINTOSH) && !defined(_MSDOS)
+#if !defined( _MACINTOSH) && !defined(_MSDOS) && !defined(_WIN32)
                        fflags = fcntl(fileno(ktdata->openf), F_GETFL, 0);
                        if (fflags > 0)
                            file_is_open |= ((fflags & O_ACCMODE) << 1);
@@ -282,7 +282,7 @@ krb5_ktf_keytab_internalize(kcontext, argp, buffer, lenremain)
                                int     fmode;
                                long    fpos;
 
-#if !defined( _MACINTOSH) && !defined(_MSDOS)
+#if !defined( _MACINTOSH) && !defined(_MSDOS) && !defined(_WIN32)
                                fmode = (file_is_open >> 1) & O_ACCMODE;
 #else
                                fmode = 0;