]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Use <sys/types.h> blksize_t instead of <bits/types.h> __blksize_t
authorpcarana <pc.moreno2099@gmail.com>
Fri, 25 Oct 2019 22:45:32 +0000 (17:45 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Fri, 25 Oct 2019 22:45:32 +0000 (17:45 -0500)
src/crypto/hash.c

index e7cc0ed19c17dd63c9ba54a0d149dd7035ee4693..9e69967a384d764d18f5513a7c86f162e63d5f7b 100644 (file)
@@ -3,6 +3,7 @@
 #include <errno.h>
 #include <openssl/evp.h>
 #include <sys/stat.h>
+#include <sys/types.h> /* For blksize_t */
 
 #include "file.h"
 #include "log.h"
@@ -39,7 +40,7 @@ hash_file(char const *algorithm, struct rpki_uri *uri, unsigned char *result,
        FILE *file;
        struct stat stat;
        unsigned char *buffer;
-       __blksize_t buffer_len;
+       blksize_t buffer_len;
        size_t consumed;
        EVP_MD_CTX *ctx;
        int error;