Commit 6ac981db authored by Rusty Russell's avatar Rusty Russell

opt: fix libmusl compile.

Fixes: #63
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 7082f7d0
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/termios.h> /* Required on Solaris for struct winsize */ #include <sys/termios.h> /* Required on Solaris for struct winsize */
#endif #endif
#if HAVE_SYS_UNISTD_H
#include <sys/unistd.h> /* Required on Solaris for ioctl */ #include <sys/unistd.h> /* Required on Solaris for ioctl */
#endif
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -315,6 +315,8 @@ static struct test tests[] = { ...@@ -315,6 +315,8 @@ static struct test tests[] = {
"#include <sys/filio.h>\n" }, "#include <sys/filio.h>\n" },
{ "HAVE_SYS_TERMIOS_H", OUTSIDE_MAIN, NULL, NULL, { "HAVE_SYS_TERMIOS_H", OUTSIDE_MAIN, NULL, NULL,
"#include <sys/termios.h>\n" }, "#include <sys/termios.h>\n" },
{ "HAVE_SYS_UNISTD_H", OUTSIDE_MAIN, NULL, NULL,
"#include <sys/unistd.h>\n" },
{ "HAVE_TYPEOF", INSIDE_MAIN, NULL, NULL, { "HAVE_TYPEOF", INSIDE_MAIN, NULL, NULL,
"__typeof__(argc) i; i = argc; return i == argc ? 0 : 1;" }, "__typeof__(argc) i; i = argc; return i == argc ? 0 : 1;" },
{ "HAVE_UNALIGNED_ACCESS", DEFINES_EVERYTHING|EXECUTE, NULL, NULL, { "HAVE_UNALIGNED_ACCESS", DEFINES_EVERYTHING|EXECUTE, NULL, NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment