29 #include "finfo.h" |
29 #include "finfo.h" |
30 |
30 |
31 #include <stdio.h> |
31 #include <stdio.h> |
32 #include <stdlib.h> |
32 #include <stdlib.h> |
33 #include <string.h> |
33 #include <string.h> |
34 #include <unistd.h> |
|
35 #include <errno.h> |
34 #include <errno.h> |
36 #include <sys/stat.h> |
35 #include <sys/stat.h> |
37 #include <limits.h> |
36 #include <limits.h> |
38 |
37 |
39 #include <cx/string.h> |
38 #include <cx/string.h> |
40 #include <cx/list.h> |
39 #include <cx/list.h> |
41 #include <cx/array_list.h> |
40 #include <cx/array_list.h> |
42 #include <libidav/crypto.h> |
41 #include <libidav/crypto.h> |
43 #include <libidav/utils.h> |
42 #include <libidav/utils.h> |
|
43 |
|
44 #ifndef _WIN32 |
|
45 #include <unistd.h> |
|
46 #endif |
44 |
47 |
45 #include "libxattr.h" |
48 #include "libxattr.h" |
46 |
49 |
47 uint32_t parse_finfo_settings(const char *str, char **error) { |
50 uint32_t parse_finfo_settings(const char *str, char **error) { |
48 cxstring s = cx_str(str); |
51 cxstring s = cx_str(str); |