opt: fix Solaris compile.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Mar 2012 04:00:29 +0000 (14:30 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Mar 2012 04:00:29 +0000 (14:30 +1030)
Need sys/termios.h for struct winsize.

ccan/opt/usage.c

index d9b2ee59cc3e4ba9a10df5a5eb358a74b5b4fb89..7c1971c2e48ed919db13625c027ffcfc328c8f6c 100644 (file)
@@ -1,6 +1,8 @@
 /* Licensed under GPLv3+ - see LICENSE file for details */
 #include <ccan/opt/opt.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 <stdlib.h>
 #include <stdio.h>