-
diff --git a/lib/global.h b/lib/global.h
index 0e7b8b6..3eaabaf 100644
a
|
b
|
|
21 | 21 | #include <sys/param.h> |
22 | 22 | #endif |
23 | 23 | |
| 24 | /* O_* macros */ |
| 25 | #ifdef HAVE_FCNTL_H |
| 26 | #include <fcntl.h> |
| 27 | #endif |
| 28 | |
24 | 29 | /* for sig_atomic_t */ |
25 | 30 | #include <signal.h> |
26 | 31 | |
-
diff --git a/lib/mcconfig/common.c b/lib/mcconfig/common.c
index 1d1944d..515fa29 100644
a
|
b
|
|
25 | 25 | #include <sys/types.h> |
26 | 26 | #include <sys/stat.h> |
27 | 27 | #include <unistd.h> |
28 | | #include <fcntl.h> |
29 | 28 | #include <errno.h> /* extern int errno */ |
30 | 29 | |
31 | 30 | #include "lib/global.h" |
-
diff --git a/lib/util.c b/lib/util.c
index 37d5fba..db0557d 100644
a
|
b
|
|
40 | 40 | #include <stdio.h> |
41 | 41 | #include <stdlib.h> |
42 | 42 | #include <string.h> |
43 | | #include <fcntl.h> |
44 | 43 | #include <sys/time.h> |
45 | 44 | #include <sys/types.h> |
46 | 45 | #include <sys/stat.h> |
-
diff --git a/lib/util.h b/lib/util.h
index 3187451..dd2e697 100644
a
|
b
|
|
5 | 5 | #ifndef MC_UTIL_H |
6 | 6 | #define MC_UTIL_H |
7 | 7 | |
8 | | #include "lib/global.h" /* include <glib.h> */ |
9 | | |
10 | 8 | #include <sys/types.h> |
11 | 9 | #include <sys/stat.h> |
12 | 10 | #include <inttypes.h> /* uintmax_t */ |
13 | 11 | #include <unistd.h> |
14 | 12 | |
| 13 | #include "lib/global.h" /* include <glib.h> */ |
| 14 | |
15 | 15 | #include "lib/vfs/vfs.h" |
16 | 16 | |
17 | 17 | /*** typedefs(not structures) and defined constants **********************************************/ |
-
diff --git a/lib/utilunix.c b/lib/utilunix.c
index 5764c8b..07093f7 100644
a
|
b
|
|
44 | 44 | #include <stdio.h> |
45 | 45 | #include <stdlib.h> |
46 | 46 | #include <string.h> |
47 | | #include <fcntl.h> |
48 | 47 | #ifdef HAVE_SYS_PARAM_H |
49 | 48 | #include <sys/param.h> |
50 | 49 | #endif |
-
diff --git a/lib/vfs/direntry.c b/lib/vfs/direntry.c
index 1305c8e..afb4746 100644
a
|
b
|
|
58 | 58 | #include <config.h> |
59 | 59 | |
60 | 60 | #include <errno.h> |
61 | | #include <fcntl.h> /* include fcntl.h -> sys/fcntl.h only */ |
62 | | /* includes fcntl.h see IEEE Std 1003.1-2008 */ |
63 | 61 | #include <time.h> |
64 | 62 | #include <sys/time.h> /* gettimeofday() */ |
65 | 63 | #include <inttypes.h> /* uintmax_t */ |
-
diff --git a/lib/vfs/interface.c b/lib/vfs/interface.c
index ca966c1..8c54a93 100644
a
|
b
|
|
41 | 41 | #include <sys/types.h> |
42 | 42 | #include <signal.h> |
43 | 43 | #include <ctype.h> /* is_digit() */ |
44 | | #include <fcntl.h> |
45 | 44 | #include <sys/stat.h> |
46 | 45 | #include <unistd.h> |
47 | 46 | #include <dirent.h> |
-
diff --git a/lib/vfs/vfs.h b/lib/vfs/vfs.h
index 309072d..037f889 100644
a
|
b
|
|
14 | 14 | #include <utime.h> |
15 | 15 | #endif |
16 | 16 | #include <stdio.h> |
17 | | #include <fcntl.h> |
18 | 17 | #include <unistd.h> |
19 | 18 | #include <stddef.h> |
20 | 19 | |
-
diff --git a/lib/widget/dialog.c b/lib/widget/dialog.c
index 917c818..5531aad 100644
a
|
b
|
|
33 | 33 | #include <string.h> |
34 | 34 | #include <sys/types.h> |
35 | 35 | #include <sys/stat.h> |
36 | | #include <fcntl.h> /* open() */ |
37 | 36 | |
38 | 37 | #include "lib/global.h" |
39 | 38 | |
-
diff --git a/lib/widget/history.c b/lib/widget/history.c
index b1fb5eb..8b1e724 100644
a
|
b
|
|
40 | 40 | #include <string.h> |
41 | 41 | #include <sys/types.h> |
42 | 42 | #include <sys/stat.h> |
43 | | #include <fcntl.h> |
44 | 43 | |
45 | 44 | #include "lib/global.h" |
46 | 45 | |
-
diff --git a/lib/widget/input.c b/lib/widget/input.c
index 070c6dc..9c0d0c0 100644
a
|
b
|
|
37 | 37 | #include <stdlib.h> |
38 | 38 | #include <sys/types.h> |
39 | 39 | #include <sys/stat.h> |
40 | | #include <fcntl.h> |
41 | 40 | |
42 | 41 | #include "lib/global.h" |
43 | 42 | |
-
diff --git a/src/background.c b/src/background.c
index 580aef7..31bd752 100644
a
|
b
|
|
42 | 42 | #include <sys/types.h> |
43 | 43 | #include <sys/stat.h> |
44 | 44 | #include <sys/wait.h> /* waitpid() */ |
45 | | #include <fcntl.h> |
46 | 45 | |
47 | 46 | #include "lib/global.h" |
48 | 47 | |
-
diff --git a/src/clipboard.c b/src/clipboard.c
index 7395ea0..26745f6 100644
a
|
b
|
|
29 | 29 | #include <stdio.h> |
30 | 30 | #include <stdlib.h> |
31 | 31 | #include <sys/types.h> |
32 | | #include <fcntl.h> |
33 | 32 | |
34 | 33 | #include "lib/global.h" |
35 | 34 | #include "lib/fileloc.h" |
-
diff --git a/src/cons.handler.c b/src/cons.handler.c
index a52bd07..365b2e8 100644
a
|
b
|
|
30 | 30 | #include <sys/wait.h> |
31 | 31 | #include <signal.h> |
32 | 32 | #include <stdio.h> |
33 | | #include <fcntl.h> |
34 | 33 | #include <sys/types.h> |
35 | 34 | #ifdef __FreeBSD__ |
36 | 35 | #include <sys/consio.h> |
-
diff --git a/src/consaver/cons.saver.c b/src/consaver/cons.saver.c
index 78ae632..5068994 100644
a
|
b
|
|
64 | 64 | #ifdef HAVE_SYS_IOCTL_H |
65 | 65 | #include <sys/ioctl.h> |
66 | 66 | #endif |
| 67 | #ifdef HAVE_FCNTL_H |
67 | 68 | #include <fcntl.h> |
| 69 | #endif |
68 | 70 | #include <termios.h> |
69 | 71 | |
70 | 72 | #include "lib/unixcompat.h" /* STDERR_FILENO */ |
-
diff --git a/src/diffviewer/ydiff.c b/src/diffviewer/ydiff.c
index c39cc30..ab6388c 100644
a
|
b
|
|
28 | 28 | #include <config.h> |
29 | 29 | #include <ctype.h> |
30 | 30 | #include <errno.h> |
31 | | #include <fcntl.h> |
32 | 31 | #include <stdlib.h> |
33 | 32 | #include <sys/stat.h> |
34 | 33 | #include <sys/types.h> |
-
diff --git a/src/editor/edit.c b/src/editor/edit.c
index 3fae74b..877621a 100644
a
|
b
|
|
42 | 42 | #include <sys/stat.h> |
43 | 43 | #include <stdint.h> /* UINTMAX_MAX */ |
44 | 44 | #include <stdlib.h> |
45 | | #include <fcntl.h> |
46 | 45 | |
47 | 46 | #include "lib/global.h" |
48 | 47 | |
-
diff --git a/src/editor/editcmd.c b/src/editor/editcmd.c
index 534a272..246e84d 100644
a
|
b
|
|
48 | 48 | #include <errno.h> |
49 | 49 | #include <sys/stat.h> |
50 | 50 | #include <stdlib.h> |
51 | | #include <fcntl.h> |
52 | 51 | |
53 | 52 | #include "lib/global.h" |
54 | 53 | #include "lib/tty/tty.h" |
-
diff --git a/src/filemanager/cmd.c b/src/filemanager/cmd.c
index 031fb10..e23ac01 100644
a
|
b
|
|
46 | 46 | #endif |
47 | 47 | #include <unistd.h> |
48 | 48 | #include <stdlib.h> |
49 | | #include <fcntl.h> |
50 | 49 | #include <pwd.h> |
51 | 50 | #include <grp.h> |
52 | 51 | #include <sys/time.h> |
-
diff --git a/src/filemanager/file.c b/src/filemanager/file.c
index 0967ac6..acaa194 100644
a
|
b
|
|
59 | 59 | #include <sys/types.h> |
60 | 60 | #include <sys/stat.h> |
61 | 61 | #include <unistd.h> |
62 | | #include <fcntl.h> |
63 | 62 | |
64 | 63 | #include "lib/global.h" |
65 | 64 | #include "lib/tty/tty.h" |
-
diff --git a/src/filemanager/find.c b/src/filemanager/find.c
index 98604fd..06b6dc4 100644
a
|
b
|
|
35 | 35 | #include <stdio.h> |
36 | 36 | #include <stdlib.h> |
37 | 37 | #include <string.h> |
38 | | #include <fcntl.h> |
39 | 38 | #include <sys/stat.h> |
40 | 39 | #include <sys/time.h> |
41 | 40 | |
-
diff --git a/src/filemanager/midnight.c b/src/filemanager/midnight.c
index 2a17ec9..b515ea8 100644
a
|
b
|
|
39 | 39 | #include <stdio.h> |
40 | 40 | #include <stdlib.h> |
41 | 41 | #include <string.h> |
42 | | #include <fcntl.h> |
43 | 42 | #include <sys/types.h> |
44 | 43 | #include <sys/stat.h> |
45 | 44 | #include <sys/wait.h> |
-
diff --git a/src/subshell.c b/src/subshell.c
index c91635c..49a32cd 100644
a
|
b
|
|
39 | 39 | #include <errno.h> |
40 | 40 | #include <string.h> |
41 | 41 | #include <signal.h> |
42 | | #include <fcntl.h> |
43 | 42 | #include <sys/types.h> |
44 | 43 | #include <sys/wait.h> |
45 | 44 | #ifdef HAVE_SYS_IOCTL_H |
-
diff --git a/src/vfs/cpio/cpio.c b/src/vfs/cpio/cpio.c
index e53e203..d30c1a5 100644
a
|
b
|
|
33 | 33 | #include <config.h> |
34 | 34 | |
35 | 35 | #include <errno.h> |
36 | | #include <fcntl.h> |
37 | 36 | #include <sys/types.h> |
38 | 37 | #include <sys/stat.h> |
39 | 38 | |
-
diff --git a/src/vfs/extfs/extfs.c b/src/vfs/extfs/extfs.c
index 7aaf3b7..2147a2e 100644
a
|
b
|
|
47 | 47 | #include <sys/stat.h> |
48 | 48 | #include <unistd.h> |
49 | 49 | #include <signal.h> |
50 | | #include <fcntl.h> |
51 | 50 | #include <errno.h> |
52 | 51 | #include <sys/wait.h> |
53 | 52 | |
-
diff --git a/src/vfs/fish/fish.c b/src/vfs/fish/fish.c
index af5c190..5be222c 100644
a
|
b
|
|
52 | 52 | |
53 | 53 | #include <config.h> |
54 | 54 | #include <errno.h> |
55 | | #include <fcntl.h> |
56 | 55 | #include <pwd.h> |
57 | 56 | #include <grp.h> |
58 | 57 | #include <sys/time.h> /* gettimeofday() */ |
-
diff --git a/src/vfs/ftpfs/ftpfs.c b/src/vfs/ftpfs/ftpfs.c
index 3acc602..c84abf0 100644
a
|
b
|
What to do with this? |
91 | 91 | #endif |
92 | 92 | #include <errno.h> |
93 | 93 | #include <ctype.h> |
94 | | #include <fcntl.h> |
95 | 94 | #include <sys/time.h> /* gettimeofday() */ |
96 | 95 | #include <inttypes.h> /* uintmax_t */ |
97 | 96 | |
-
diff --git a/src/vfs/local/local.c b/src/vfs/local/local.c
index ededc25..7ea70f2 100644
a
|
b
|
|
31 | 31 | #include <unistd.h> |
32 | 32 | #include <stdio.h> |
33 | 33 | #include <string.h> |
34 | | #include <fcntl.h> |
35 | 34 | |
36 | 35 | #include "lib/global.h" |
37 | 36 | |
-
diff --git a/src/vfs/sfs/sfs.c b/src/vfs/sfs/sfs.c
index cf97a0f..d864c46 100644
a
|
b
|
|
43 | 43 | #include <unistd.h> |
44 | 44 | #include <stdio.h> |
45 | 45 | #include <string.h> |
46 | | #include <fcntl.h> |
47 | 46 | |
48 | 47 | #include "lib/global.h" |
49 | 48 | #include "lib/util.h" |
-
diff --git a/src/vfs/tar/tar.c b/src/vfs/tar/tar.c
index ade464c..74e1232 100644
a
|
b
|
|
39 | 39 | #include <sys/types.h> |
40 | 40 | #include <errno.h> |
41 | 41 | #include <ctype.h> |
42 | | #include <fcntl.h> |
43 | 42 | |
44 | 43 | #ifdef hpux |
45 | 44 | /* major() and minor() macros (among other things) defined here for hpux */ |
-
diff --git a/src/vfs/undelfs/undelfs.c b/src/vfs/undelfs/undelfs.c
index a8e4dd4..2ad8be2 100644
a
|
b
|
|
48 | 48 | #include <errno.h> |
49 | 49 | #include <stdio.h> |
50 | 50 | #include <stdlib.h> |
51 | | #include <fcntl.h> |
52 | 51 | |
53 | 52 | #ifdef HAVE_EXT2FS_EXT2_FS_H |
54 | 53 | #include <ext2fs/ext2_fs.h> |
-
diff --git a/src/viewer/hex.c b/src/viewer/hex.c
index c12bebe..e17b9ae 100644
a
|
b
|
|
36 | 36 | #include <config.h> |
37 | 37 | |
38 | 38 | #include <errno.h> |
39 | | #include <fcntl.h> |
40 | 39 | #include <inttypes.h> /* uintmax_t */ |
41 | 40 | |
42 | 41 | #include "lib/global.h" |
-
diff --git a/src/viewer/mcviewer.c b/src/viewer/mcviewer.c
index 52ecd01..a34099b 100644
a
|
b
|
|
35 | 35 | |
36 | 36 | #include <config.h> |
37 | 37 | #include <errno.h> |
38 | | #include <fcntl.h> |
39 | 38 | |
40 | 39 | #include "lib/global.h" |
41 | 40 | #include "lib/tty/tty.h" |