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>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-18 15:11:08 +01:00 committed by Marge Bot
parent 54a2dfc229
commit f6a367102c
24 changed files with 39 additions and 7 deletions

View File

@ -26,6 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <dix-config.h>
#endif
#include <errno.h>
#include <sys/socket.h>
#include <stdio.h>
#include <stdarg.h>

View File

@ -27,6 +27,8 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include "xf86.h"
#include "xf86Config.h"
#include "xf86_OSlib.h"

View File

@ -53,9 +53,11 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include <X11/X.h>
#include <X11/Xproto.h>
#include <X11/Xatom.h>
#include "misc.h"
#include "xf86.h"
#include "xf86Priv.h"

View File

@ -36,7 +36,9 @@
#include "dix-config.h"
#endif
#include <errno.h>
#include <time.h>
#include "list.h"
#include "xf86.h"
#include "driver.h"

View File

@ -36,8 +36,10 @@
#include "dix-config.h"
#endif
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include "xf86.h"
#include "xf86Priv.h"
#include "xf86_OSproc.h"

View File

@ -24,6 +24,8 @@
#include "dix-config.h"
#endif
#include <errno.h>
#include <xserver_poll.h>
#include <xf86drm.h>

View File

@ -29,7 +29,9 @@
#include "dix-config.h"
#endif
#include <errno.h>
#include <unistd.h>
#include <xf86.h>
#include <xf86Crtc.h>
#include "driver.h"

View File

@ -7,6 +7,7 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include <string.h>
#include <unistd.h>

View File

@ -27,7 +27,9 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include <X11/X.h>
#include "xf86.h"
#include "xf86Priv.h"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -27,6 +27,7 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include <X11/X.h>
#include <X11/Xmd.h>

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -24,6 +24,7 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include <sys/audio.h>
#include <sys/uio.h>
#include <limits.h>

View File

@ -26,6 +26,8 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include "xf86.h"
#include "xf86Priv.h"
#include "xf86_OSlib.h"

View File

@ -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>

View File

@ -34,6 +34,8 @@
#include <dix-config.h>
#endif
#include <errno.h>
#include "quartz.h"
#include "misc.h"

View File

@ -34,6 +34,7 @@
#include <dix-config.h>
#endif
#include <errno.h>
#include <X11/Xlib.h>
#include <assert.h>
#include <unistd.h>

View File

@ -29,6 +29,7 @@
#include <inpututils.h>
#include <libgen.h>
#include <unistd.h>
#include <errno.h>
#include <libei.h>

View File

@ -34,6 +34,7 @@
#include <netdb.h>
#endif
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <X11/X.h>