projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4f43d2
)
opt: fix Solaris compile.
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 27 Mar 2012 04:00:29 +0000
(14:30 +1030)
committer
Rusty 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
patch
|
blob
|
history
diff --git
a/ccan/opt/usage.c
b/ccan/opt/usage.c
index d9b2ee59cc3e4ba9a10df5a5eb358a74b5b4fb89..7c1971c2e48ed919db13625c027ffcfc328c8f6c 100644
(file)
--- a/
ccan/opt/usage.c
+++ b/
ccan/opt/usage.c
@@
-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>