summaryrefslogtreecommitdiffstats
path: root/stubs/bzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'stubs/bzip.c')
-rw-r--r--stubs/bzip.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/stubs/bzip.c b/stubs/bzip.c
index b4bfda84a..b6f304bf9 100644
--- a/stubs/bzip.c
+++ b/stubs/bzip.c
@@ -1,5 +1,9 @@
/* empty bzip stubs */
+# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
+# define _strong_alias(name, aliasname) \
+ extern __typeof (name) aliasname __attribute__ ((alias (#name)));
+
void * bzdopen(int fd, const char *mode) {
return (void *) 0;
}
@@ -26,3 +30,12 @@ void bzclose(void * b) {
int bzflush(void * b) {
return 0;
}
+
+strong_alias(bzclose, BZ2_bzclose)
+strong_alias(bzdopen, BZ2_bzdopen)
+strong_alias(bzerror, BZ2_bzerror)
+strong_alias(bzflush, BZ2_bzflush)
+strong_alias(bzopen, BZ2_bzopen)
+strong_alias(bzread, BZ2_bzread)
+strong_alias(bzwrite, BZ2_bzwrite)
+