Browse Source

opt: fix Solaris compile.

Need sys/termios.h for struct winsize.
Rusty Russell 14 years ago
parent
commit
754891d3b9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ccan/opt/usage.c

+ 2 - 0
ccan/opt/usage.c

@@ -1,6 +1,8 @@
 /* Licensed under GPLv3+ - see LICENSE file for details */
 /* Licensed under GPLv3+ - see LICENSE file for details */
 #include <ccan/opt/opt.h>
 #include <ccan/opt/opt.h>
 #include <sys/ioctl.h>
 #include <sys/ioctl.h>
+#include <sys/termios.h> /* Required on Solaris for struct winsize */
+#include <sys/unistd.h> /* Required on Solaris for ioctl */
 #include <string.h>
 #include <string.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdio.h>