diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-09 09:44:53 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-09 09:47:27 -0800 |
commit | 5105aedd667f5a338840272a27f433ae692d9e34 (patch) | |
tree | e912c3fa8674e8b3836468b62e44ef0d0ce95a1f | |
parent | de90578cd0bdc69dbd74dbc96bde2ec1cae6d239 (diff) |
Add include of unistd.h for ioctl() definition on Solaris
Clears gcc warning:
cg14_driver.c: In function ‘CG14InitCplane24’:
cg14_driver.c:669:3: warning: implicit declaration of function ‘ioctl’;
did you mean ‘iscntrl’? [-Wimplicit-function-declaration]
ioctl (pCg14->psdp->fd, CG14_SET_PIXELMODE, &bpp);
^~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/cg14_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cg14_driver.c b/src/cg14_driver.c index 93bbdf6..1f152f5 100644 --- a/src/cg14_driver.c +++ b/src/cg14_driver.c @@ -25,6 +25,7 @@ #include "config.h" #endif +#include <unistd.h> #include <sys/ioctl.h> #include <string.h> |