summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author4ling.cn <[email protected]>2024-03-12 10:50:25 +0000
committer4ling.cn <[email protected]>2024-03-12 10:55:51 +0000
commitaf67397fc95133162d8039452941801249e63cfc (patch)
tree59c8ace127e20317abb8c76698595917341b0869
parent7a2d2b50208259dcd5402d0fbd4422265b0ace7f (diff)
fix compile warningHEADv1.3.6develop
-rw-r--r--src/osfp.c1
-rw-r--r--src/osfp_common.c1
-rw-r--r--src/osfp_fingerprint.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/osfp.c b/src/osfp.c
index c43041f..7210b60 100644
--- a/src/osfp.c
+++ b/src/osfp.c
@@ -1,4 +1,5 @@
#include <sys/fcntl.h>
+#include <unistd.h>
#include "cJSON.h"
diff --git a/src/osfp_common.c b/src/osfp_common.c
index 6f6f596..d2a76d3 100644
--- a/src/osfp_common.c
+++ b/src/osfp_common.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <string.h>
+#include <sys/stat.h>
#include <sys/fcntl.h>
#include "osfp_common.h"
diff --git a/src/osfp_fingerprint.c b/src/osfp_fingerprint.c
index b7d985d..4e97d09 100644
--- a/src/osfp_fingerprint.c
+++ b/src/osfp_fingerprint.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <ctype.h>
#include "cJSON.h"