mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
archivers/unalz: Adjust patch for DragonFly support (dports)
This commit is contained in:
parent
592081e41b
commit
5d68b2a1ed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361051
@ -1,15 +1,25 @@
|
||||
--- UnAlz.cpp.orig
|
||||
--- UnAlz.cpp.orig 2014-07-07 10:40:53.000000000 +0000
|
||||
+++ UnAlz.cpp
|
||||
@@ -37,7 +37,7 @@
|
||||
# include <errno.h>
|
||||
#endif
|
||||
|
||||
-#if defined(__NetBSD__)
|
||||
+#if defined(__NetBSD__) || defined(__FreeBSD__)
|
||||
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
# include <sys/param.h> // __NetBSD_Version__
|
||||
# include <errno.h> // iconv.h 때문에 필요
|
||||
#endif
|
||||
@@ -1907,7 +1907,11 @@
|
||||
@@ -455,7 +455,8 @@ BOOL CUnAlz::ReadLocalFileheader()
|
||||
size_t size;
|
||||
char inbuf[ICONV_BUF_SIZE];
|
||||
char outbuf[ICONV_BUF_SIZE];
|
||||
-#if defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__NetBSD__)
|
||||
+#if defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__NetBSD__) \
|
||||
+ || defined(__DragonFly__)
|
||||
const char *inptr = inbuf;
|
||||
#else
|
||||
char *inptr = inbuf;
|
||||
@@ -1907,7 +1908,11 @@ void CUnAlz::DecryptingData(int nSize, B
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
UINT32 CUnAlz::CRC32(UINT32 l, BYTE c)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user