examples/cuse_client: add include file to eliminate compiler warning (#568)
authorRethan <359062468@qq.con>
Tue, 24 Nov 2020 09:28:13 +0000 (17:28 +0800)
committerGitHub <noreply@github.com>
Tue, 24 Nov 2020 09:28:13 +0000 (09:28 +0000)
Compiler warning about close(fd), add include file to fix.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
Co-authored-by: haoyixing <haoyixing@kuaishou.com>
example/cuse_client.c
example/ioctl_client.c

index 465302c5ef76e89637f924552a565fb402ec5015..903ffc63f8430e1d838f81aab131a6c85c874510 100644 (file)
@@ -45,6 +45,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <errno.h>
+#include <unistd.h>
 #include "ioctl.h"
 
 const char *usage =
index dcb18ccdcf9c2f322d52eccdc1230b0dd3dd5c60..019d03031fba519953e3abaad461dd19d7127a00 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <errno.h>
+#include <unistd.h>
 #include "ioctl.h"
 
 const char *usage =