diff options
author | LAN-TW <lantw44@gmail.com> | 2013-11-10 12:08:10 +0800 |
---|---|---|
committer | LAN-TW <lantw44@nbtest.tfcis.org> | 2013-11-10 12:08:10 +0800 |
commit | ea4979eb99eaad265ec2591fae1e344cd689958e (patch) | |
tree | cc2d6b955727d7e131396293f63544115ed42849 | |
parent | 782de2cc87daa59de9952c0924851514aa7470e1 (diff) | |
download | cn2013-ea4979eb99eaad265ec2591fae1e344cd689958e.tar.gz cn2013-ea4979eb99eaad265ec2591fae1e344cd689958e.tar.zst cn2013-ea4979eb99eaad265ec2591fae1e344cd689958e.zip |
HW1: 修正 ioctl 隱含宣告問題
-rw-r--r-- | hw1/session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw1/session.c b/hw1/session.c index 25525c6..3562abd 100644 --- a/hw1/session.c +++ b/hw1/session.c @@ -25,6 +25,10 @@ #include <sys/wait.h> #include <unistd.h> +#ifdef OS_IS_BSD /* need ioctl(2) */ +# include <sys/ioctl.h> +#endif + int ras_session_init (RasSession* session, RasServer* server, int fd, int id) { /* chain up to parent constructor */ int rval = ras_conn_init ( |