diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-03-18 15:11:08 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-03-18 22:58:32 +0000 |
commit | f6a367102cbb4ab8b8d56b1943a06cc07462cd81 (patch) | |
tree | 4c6ecc18081b8d86ae32e6bbb39dc7a9f905381b /hw/xfree86/os-support | |
parent | 54a2dfc229ed076ed733ac161ec0afbb22931448 (diff) |
Fix missing includes of <errno.h>
It's much cleaner to always include directly what one needs,
instead of relying on very indirect including.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1416>
Diffstat (limited to 'hw/xfree86/os-support')
-rw-r--r-- | hw/xfree86/os-support/bsd/alpha_video.c | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/bsd/arm_video.c | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/hurd/hurd_video.c | 3 | ||||
-rw-r--r-- | hw/xfree86/os-support/linux/lnx_agp.c | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/linux/lnx_init.c | 1 | ||||
-rw-r--r-- | hw/xfree86/os-support/shared/posix_tty.c | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/shared/sigio.c | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/solaris/sun_agp.c | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/solaris/sun_apm.c | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/solaris/sun_bell.c | 1 | ||||
-rw-r--r-- | hw/xfree86/os-support/solaris/sun_init.c | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/xf86_OSlib.h | 6 |
12 files changed, 20 insertions, 7 deletions
diff --git a/hw/xfree86/os-support/bsd/alpha_video.c b/hw/xfree86/os-support/bsd/alpha_video.c index b4038bd2b..721c09af8 100644 --- a/hw/xfree86/os-support/bsd/alpha_video.c +++ b/hw/xfree86/os-support/bsd/alpha_video.c @@ -27,7 +27,9 @@ #include <xorg-config.h> #endif +#include <errno.h> #include <X11/X.h> + #include "xf86.h" #include "xf86Priv.h" diff --git a/hw/xfree86/os-support/bsd/arm_video.c b/hw/xfree86/os-support/bsd/arm_video.c index 180d70543..587b9d3ac 100644 --- a/hw/xfree86/os-support/bsd/arm_video.c +++ b/hw/xfree86/os-support/bsd/arm_video.c @@ -60,7 +60,9 @@ #include <xorg-config.h> #endif +#include <errno.h> #include <X11/X.h> + #include "xf86.h" #include "xf86Priv.h" #include "xf86_OSlib.h" diff --git a/hw/xfree86/os-support/hurd/hurd_video.c b/hw/xfree86/os-support/hurd/hurd_video.c index ac24f1950..63f3aef71 100644 --- a/hw/xfree86/os-support/hurd/hurd_video.c +++ b/hw/xfree86/os-support/hurd/hurd_video.c @@ -29,8 +29,9 @@ #include <device/device.h> #include <mach/machine/mach_i386.h> #include <hurd.h> - +#include <errno.h> #include <X11/X.h> + #include "input.h" #include "scrnintstr.h" diff --git a/hw/xfree86/os-support/linux/lnx_agp.c b/hw/xfree86/os-support/linux/lnx_agp.c index 3aec5397c..58c904afb 100644 --- a/hw/xfree86/os-support/linux/lnx_agp.c +++ b/hw/xfree86/os-support/linux/lnx_agp.c @@ -11,7 +11,9 @@ #include <xorg-config.h> #endif +#include <errno.h> #include <X11/X.h> + #include "xf86.h" #include "xf86Priv.h" #include "xf86_OSlib.h" diff --git a/hw/xfree86/os-support/linux/lnx_init.c b/hw/xfree86/os-support/linux/lnx_init.c index 4ea791a89..b3270c5b3 100644 --- a/hw/xfree86/os-support/linux/lnx_init.c +++ b/hw/xfree86/os-support/linux/lnx_init.c @@ -27,6 +27,7 @@ #include <xorg-config.h> #endif +#include <errno.h> #include <X11/X.h> #include <X11/Xmd.h> diff --git a/hw/xfree86/os-support/shared/posix_tty.c b/hw/xfree86/os-support/shared/posix_tty.c index 50f88cdc9..ee2b2154a 100644 --- a/hw/xfree86/os-support/shared/posix_tty.c +++ b/hw/xfree86/os-support/shared/posix_tty.c @@ -56,7 +56,9 @@ #include <xorg-config.h> #endif +#include <errno.h> #include <X11/X.h> + #include <xserver_poll.h> #include "xf86.h" #include "xf86Priv.h" diff --git a/hw/xfree86/os-support/shared/sigio.c b/hw/xfree86/os-support/shared/sigio.c index ad8af6093..e3f0774dc 100644 --- a/hw/xfree86/os-support/shared/sigio.c +++ b/hw/xfree86/os-support/shared/sigio.c @@ -56,7 +56,9 @@ #include <xorg-config.h> #endif +#include <errno.h> #include <X11/X.h> + #include <xserver_poll.h> #include "xf86.h" #include "xf86Priv.h" diff --git a/hw/xfree86/os-support/solaris/sun_agp.c b/hw/xfree86/os-support/solaris/sun_agp.c index d8bff2fda..8728e920e 100644 --- a/hw/xfree86/os-support/solaris/sun_agp.c +++ b/hw/xfree86/os-support/solaris/sun_agp.c @@ -32,7 +32,9 @@ #include <xorg-config.h> #endif +#include <errno.h> #include <X11/X.h> + #include "xf86.h" #include "xf86Priv.h" #include "xf86_OSlib.h" diff --git a/hw/xfree86/os-support/solaris/sun_apm.c b/hw/xfree86/os-support/solaris/sun_apm.c index 11549aaf0..6516372d7 100644 --- a/hw/xfree86/os-support/solaris/sun_apm.c +++ b/hw/xfree86/os-support/solaris/sun_apm.c @@ -53,7 +53,9 @@ #include <xorg-config.h> #endif +#include <errno.h> #include <X11/X.h> + #include "os.h" #include "xf86.h" #include "xf86Priv.h" diff --git a/hw/xfree86/os-support/solaris/sun_bell.c b/hw/xfree86/os-support/solaris/sun_bell.c index 69ea50c47..6aa0a37a3 100644 --- a/hw/xfree86/os-support/solaris/sun_bell.c +++ b/hw/xfree86/os-support/solaris/sun_bell.c @@ -24,6 +24,7 @@ #include <xorg-config.h> #endif +#include <errno.h> #include <sys/audio.h> #include <sys/uio.h> #include <limits.h> diff --git a/hw/xfree86/os-support/solaris/sun_init.c b/hw/xfree86/os-support/solaris/sun_init.c index d7bf2e54b..415cdb1c8 100644 --- a/hw/xfree86/os-support/solaris/sun_init.c +++ b/hw/xfree86/os-support/solaris/sun_init.c @@ -26,6 +26,8 @@ #include <xorg-config.h> #endif +#include <errno.h> + #include "xf86.h" #include "xf86Priv.h" #include "xf86_OSlib.h" diff --git a/hw/xfree86/os-support/xf86_OSlib.h b/hw/xfree86/os-support/xf86_OSlib.h index 159c8064c..12992914c 100644 --- a/hw/xfree86/os-support/xf86_OSlib.h +++ b/hw/xfree86/os-support/xf86_OSlib.h @@ -91,8 +91,6 @@ #include <sys/stat.h> #include <sys/types.h> -#include <errno.h> - #if defined(_NEED_SYSI86) #if !(defined (__sun) && defined (SVR4)) #include <sys/immu.h> @@ -188,8 +186,6 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX]; #include <sys/param.h> #endif -#include <errno.h> - #include <sys/stat.h> #include <sys/mman.h> @@ -219,8 +215,6 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX]; #define termio termios #define POSIX_TTY -#include <errno.h> - #include <sys/types.h> #include <sys/mman.h> #include <sys/stat.h> |