openwrt-packages/utils/tmux/patches/100-b64_ntop-conflict_compa...

16 lines
401 B
Diff

diff --git a/compat.h b/compat.h
index 65d6ec7..7fc3aa7 100644
--- a/compat.h
+++ b/compat.h
@@ -219,7 +219,9 @@ int daemon(int, int);
#ifndef HAVE_B64_NTOP
/* b64_ntop.c */
#undef b64_ntop /* for Cygwin */
-int b64_ntop(const char *, size_t, char *, size_t);
+int local_b64_ntop(const char *, size_t, char *, size_t);
+#else
+#define local_b64_ntop b64_ntop
#endif
#ifndef HAVE_FORKPTY