mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 13:23:08 +00:00
c7b9a9bd70
This gets gcc and friends working with musl-libc. GDB and Strace patches come from openwrt. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
54 lines
882 B
Diff
54 lines
882 B
Diff
--- a/evdev.c
|
|
+++ b/evdev.c
|
|
@@ -28,6 +28,8 @@
|
|
|
|
#include "defs.h"
|
|
|
|
+#include <linux/ioctl.h>
|
|
+
|
|
#ifdef HAVE_LINUX_INPUT_H
|
|
#include <linux/input.h>
|
|
#include "xlat/evdev_abs.h"
|
|
--- a/ioctl.c
|
|
+++ b/ioctl.c
|
|
@@ -29,7 +29,7 @@
|
|
*/
|
|
|
|
#include "defs.h"
|
|
-#include <asm/ioctl.h>
|
|
+#include <linux/ioctl.h>
|
|
#include "xlat/ioctl_dirs.h"
|
|
|
|
#ifdef HAVE_LINUX_INPUT_H
|
|
--- a/ioctlsort.c
|
|
+++ b/ioctlsort.c
|
|
@@ -33,7 +33,7 @@
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
-#include <asm/ioctl.h>
|
|
+#include <linux/ioctl.h>
|
|
|
|
struct ioctlent {
|
|
const char *info;
|
|
--- a/mknod.c
|
|
+++ b/mknod.c
|
|
@@ -1,6 +1,7 @@
|
|
#include "defs.h"
|
|
|
|
#include <fcntl.h>
|
|
+#include <sys/stat.h>
|
|
|
|
#ifdef MAJOR_IN_SYSMACROS
|
|
# include <sys/sysmacros.h>
|
|
--- a/printmode.c
|
|
+++ b/printmode.c
|
|
@@ -1,6 +1,7 @@
|
|
#include "defs.h"
|
|
|
|
#include <fcntl.h>
|
|
+#include <sys/stat.h>
|
|
|
|
#include "xlat/modetypes.h"
|
|
|