]> git.sven.stormbind.net Git - sven/exfat-utils.git/blobdiff - libexfat/io.c
Update upstream source from tag 'upstream/1.2.8'
[sven/exfat-utils.git] / libexfat / io.c
index 63ccfdbfdf9cc02e21cda76f38840bbdf9a7d751..bae0cf15a1412dfdac2c67b4085d35aa56361bc6 100644 (file)
@@ -3,7 +3,7 @@
        exFAT file system implementation library.
 
        Free exFAT implementation.
-       Copyright (C) 2010-2017  Andrew Nayenko
+       Copyright (C) 2010-2018  Andrew Nayenko
 
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
@@ -35,8 +35,9 @@
 #include <sys/disklabel.h>
 #include <sys/dkio.h>
 #include <sys/ioctl.h>
-#endif
+#elif __linux__
 #include <sys/mount.h>
+#endif
 
 struct exfat_dev
 {
@@ -84,7 +85,7 @@ struct exfat_dev* exfat_open(const char* spec, enum exfat_mode mode)
           started with stdin (0), stdout (1) or stderr (2) closed, the system
           will give us descriptor 0, 1 or 2 later when we open block device,
           FUSE communication pipe, etc. As a result, functions using stdin,
-          stdout or stderr will actualy work with a different thing and can
+          stdout or stderr will actually work with a different thing and can
           corrupt it. Protect descriptors 0, 1 and 2 from such misuse. */
        while (!is_open(STDIN_FILENO)
                || !is_open(STDOUT_FILENO)