mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
* global.h: Move fcntl.h inclusion here. Define O_BINARY.
* mountlist.c: Remove more includes already handled in global.h.
This commit is contained in:
parent
c646bbb049
commit
c785d4195b
@ -1,3 +1,8 @@
|
||||
2002-09-23 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* global.h: Move fcntl.h inclusion here. Define O_BINARY.
|
||||
* mountlist.c: Remove more includes already handled in global.h.
|
||||
|
||||
2002-09-22 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* man2hlp.c (handle_alt_font): Implement .BR, .IR, .RB, .RI, .BI
|
||||
|
@ -30,7 +30,6 @@
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "global.h"
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h> /* open, O_RDWR */
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef USE_NETCODE
|
||||
|
@ -22,7 +22,6 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
@ -67,7 +67,6 @@
|
||||
# include <unistd.h>
|
||||
#endif /* HAVE_UNISTD_H */
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "global.h"
|
||||
#include "tty.h"
|
||||
|
@ -70,7 +70,6 @@
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "global.h"
|
||||
#include "tty.h"
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "global.h"
|
||||
|
@ -39,10 +39,6 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef HAVE_FCNTL_H
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_STATFS_H
|
||||
#include <sys/statfs.h>
|
||||
#endif
|
||||
|
18
src/global.h
18
src/global.h
@ -32,6 +32,24 @@
|
||||
# include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FCNTL_H
|
||||
# include <fcntl.h>
|
||||
#endif
|
||||
|
||||
/* The O_BINARY definition was taken from gettext */
|
||||
#if !defined O_BINARY && defined _O_BINARY
|
||||
/* For MSC-compatible compilers. */
|
||||
# define O_BINARY _O_BINARY
|
||||
#endif
|
||||
#ifdef __BEOS__
|
||||
/* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
|
||||
# undef O_BINARY
|
||||
#endif
|
||||
/* On reasonable systems, binary I/O is the default. */
|
||||
#ifndef O_BINARY
|
||||
# define O_BINARY 0
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_TIMEB_H
|
||||
# include <sys/timeb.h>
|
||||
#endif
|
||||
|
@ -39,7 +39,6 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h> /* For O_RDWR */
|
||||
#include <signal.h>
|
||||
|
||||
/* Program include files */
|
||||
|
@ -21,26 +21,6 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
void free (void *ptr);
|
||||
#endif
|
||||
#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
|
||||
#include <string.h>
|
||||
#else
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */
|
||||
#include <sys/mount.h>
|
||||
|
@ -25,7 +25,6 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "global.h"
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include "poptalloca.h"
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -36,7 +36,6 @@
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
# include <sys/ioctl.h> /* For ioctl() (surprise, surprise) */
|
||||
#endif
|
||||
#include <fcntl.h> /* For open(), etc. */
|
||||
#include <string.h> /* strstr(), strcpy(), etc. */
|
||||
#include <signal.h> /* sigaction(), sigprocmask(), etc. */
|
||||
#include <sys/stat.h> /* Required by dir.h & panel.h below */
|
||||
|
@ -35,7 +35,6 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "global.h"
|
||||
#include "tty.h"
|
||||
|
@ -27,7 +27,6 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <signal.h> /* my_system */
|
||||
#include <limits.h> /* INT_MAX */
|
||||
#include <sys/stat.h>
|
||||
|
@ -24,7 +24,6 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <signal.h> /* my_system */
|
||||
#include <limits.h> /* INT_MAX */
|
||||
#include <sys/stat.h>
|
||||
@ -757,7 +756,6 @@ putenv (const char *string)
|
||||
#include <sys/types.h>
|
||||
#include <sys/stream.h> /* defines queue_t */
|
||||
#include <stropts.h> /* defines struct strtdinsert */
|
||||
#include <fcntl.h>
|
||||
|
||||
#define SPX_DEVICE "/dev/spx"
|
||||
#define S_PIPE_HANDLE_ERRNO 1
|
||||
|
@ -36,7 +36,6 @@
|
||||
#ifdef HAVE_MMAP
|
||||
# include <sys/mman.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h> /* For toupper() */
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
|
@ -30,7 +30,6 @@
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
#include "global.h"
|
||||
#include "tty.h"
|
||||
|
Loading…
Reference in New Issue
Block a user