kumquat-buildroot/package/exfatprogs/0001-exfatprogs-add-missing-include-sys-types.h.patch

50 lines
1.7 KiB
Diff
Raw Normal View History

From da03ba80944668817c374a816b8b0c515af0ac89 Mon Sep 17 00:00:00 2001
From: James Hilliard <james.hilliard1@gmail.com>
Date: Fri, 17 Apr 2020 13:10:49 -0600
Subject: [PATCH] exfatprogs: add missing #include <sys/types.h>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes:
../include/libexfat.h:72:1: error: unknown type name ssize_t
ssize_t exfat_read(int fd, void *buf, size_t size, off_t offset);
^
../include/libexfat.h:72:52: error: unknown type name off_t
ssize_t exfat_read(int fd, void *buf, size_t size, off_t offset);
^
../include/libexfat.h:73:1: error: unknown type name ssize_t
ssize_t exfat_write(int fd, void *buf, size_t size, off_t offset);
^
../include/libexfat.h:73:53: error: unknown type name off_t
ssize_t exfat_write(int fd, void *buf, size_t size, off_t offset);
^
../include/libexfat.h:75:1: error: unknown type name ssize_t
ssize_t exfat_utf16_enc(const char *in_str, __u16 *out_str, size_t out_size);
^
../include/libexfat.h:76:1: error: unknown type name ssize_t
ssize_t exfat_utf16_dec(const __u16 *in_str, size_t in_len,
^
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
[Upstream status: https://github.com/exfatprogs/exfatprogs/pull/50]
---
include/exfat_tools.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/exfat_tools.h b/include/exfat_tools.h
index 45de4aa..105fd2a 100644
--- a/include/exfat_tools.h
+++ b/include/exfat_tools.h
@@ -6,6 +6,7 @@
#ifndef _EXFAT_TOOLS_H
#include <stdbool.h>
+#include <sys/types.h>
#include <wchar.h>
#define KB (1024)
--
2.20.1