Revert "Fix missing includes of <errno.h>"

Removing errno from xf86_OSlib.h breaks the xf86-input-mouse driver
build. And xf86_OSlib.h itself relies on errno anyway in the SYSCALL
macro provided by this header.

This reverts commit f6a367102c.

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1423>
This commit is contained in:
Peter Hutterer 2024-03-19 10:16:44 +10:00 committed by Marge Bot
parent 792758faa5
commit 924939c886
24 changed files with 7 additions and 39 deletions

View File

@ -26,7 +26,6 @@ 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,8 +27,6 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include "xf86.h"
#include "xf86Config.h"
#include "xf86_OSlib.h"

View File

@ -53,11 +53,9 @@
#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,9 +36,7 @@
#include "dix-config.h"
#endif
#include <errno.h>
#include <time.h>
#include "list.h"
#include "xf86.h"
#include "driver.h"

View File

@ -36,10 +36,8 @@
#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,8 +24,6 @@
#include "dix-config.h"
#endif
#include <errno.h>
#include <xserver_poll.h>
#include <xf86drm.h>

View File

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

View File

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

View File

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

View File

@ -60,9 +60,7 @@
#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,9 +29,8 @@
#include <device/device.h>
#include <mach/machine/mach_i386.h>
#include <hurd.h>
#include <errno.h>
#include <X11/X.h>
#include <X11/X.h>
#include "input.h"
#include "scrnintstr.h"

View File

@ -11,9 +11,7 @@
#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,7 +27,6 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include <X11/X.h>
#include <X11/Xmd.h>

View File

@ -56,9 +56,7 @@
#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,9 +56,7 @@
#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,9 +32,7 @@
#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,9 +53,7 @@
#include <xorg-config.h>
#endif
#include <errno.h>
#include <X11/X.h>
#include "os.h"
#include "xf86.h"
#include "xf86Priv.h"

View File

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

View File

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

View File

@ -91,6 +91,8 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#if defined(_NEED_SYSI86)
#if !(defined (__sun) && defined (SVR4))
#include <sys/immu.h>
@ -186,6 +188,8 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX];
#include <sys/param.h>
#endif
#include <errno.h>
#include <sys/stat.h>
#include <sys/mman.h>
@ -215,6 +219,8 @@ 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,8 +34,6 @@
#include <dix-config.h>
#endif
#include <errno.h>
#include "quartz.h"
#include "misc.h"

View File

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

View File

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

View File

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