summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_data.3
diff options
context:
space:
mode:
authorPhilippe Daouadi <pdaouadi@aldebaran.com>2015-06-08 16:10:02 +0200
committerPhilippe Daouadi <pdaouadi@aldebaran.com>2015-06-08 16:15:12 +0200
commit72e98eb4ffed327092fbeb8eac7ae37c6093064a (patch)
tree1808c192bf0c5c0dc8e03ea09c46ca5fecc471a0 /libarchive/archive_read_data.3
parentaba7cd3e9c4da0be0a60e8ae2249ecc9ac49977c (diff)
downloadlibarchive-72e98eb4ffed327092fbeb8eac7ae37c6093064a.tar.gz
Do not use private macros for special types
When you need to write a callback for archive_read_open2, you must provide a function which has the same signature as the typedef. The documentation says that the read callback returns a ssize_t, but on windows there is no such ssize_t. libarchive falls back on another type and use the private macro __LA_SSIZE_T, thus it is not possible to write portable code that use read_open2. This patch replaces that macro with a simple typedef la_ssize_t (and does the same for la_int64_t).
Diffstat (limited to 'libarchive/archive_read_data.3')
-rw-r--r--libarchive/archive_read_data.32
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_data.3 b/libarchive/archive_read_data.3
index bf0578ce..c1bc15d7 100644
--- a/libarchive/archive_read_data.3
+++ b/libarchive/archive_read_data.3
@@ -37,7 +37,7 @@
Streaming Archive Library (libarchive, -larchive)
.Sh SYNOPSIS
.In archive.h
-.Ft ssize_t
+.Ft la_ssize_t
.Fn archive_read_data "struct archive *" "void *buff" "size_t len"
.Ft int
.Fo archive_read_data_block