base-files: allow users to delect debug level during boot
[openwrt.git] / package / utils / busybox / patches / 999-musl-fixes.patch
1 --- a/include/platform.h
2 +++ b/include/platform.h
3 @@ -443,6 +443,13 @@ typedef unsigned smalluint;
4  # undef HAVE_NET_ETHERNET_H
5  #endif
6  
7 +#if defined(__musl__)
8 +# undef HAVE_SETBIT
9 +# include <stddef.h>
10 +# include <termios.h>
11 +# include <sys/ioctl.h>
12 +#endif
13 +
14  /*
15   * Now, define prototypes for all the functions defined in platform.c
16   * These must come after all the HAVE_* macros are defined (or not)