summaryrefslogtreecommitdiffstats
path: root/src/upx-1-fix-logging.patch
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-08-30 14:27:40 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-11-10 01:25:40 (GMT)
commiteab4194fc8c7df1a27248d1539108a9ded090f45 (patch)
tree2f40432310e984f9cadc609cda0495f9bdf3959c /src/upx-1-fix-logging.patch
parent1185a87aaf321183ef1706513ad94c8e4f5c2c8f (diff)
downloadmxe-eab4194fc8c7df1a27248d1539108a9ded090f45.zip
mxe-eab4194fc8c7df1a27248d1539108a9ded090f45.tar.gz
mxe-eab4194fc8c7df1a27248d1539108a9ded090f45.tar.bz2
add package upx
Diffstat (limited to 'src/upx-1-fix-logging.patch')
-rw-r--r--src/upx-1-fix-logging.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/upx-1-fix-logging.patch b/src/upx-1-fix-logging.patch
new file mode 100644
index 0000000..a1d5005
--- /dev/null
+++ b/src/upx-1-fix-logging.patch
@@ -0,0 +1,52 @@
+This file is part of MXE.
+See index.html for further information.
+
+From a9c84ba7518ea4cc92cf4b391f609c3f6ade0974 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev <bnagaev@gmail.com>
+Date: Sun, 30 Aug 2015 16:13:06 +0200
+Subject: [PATCH] fix logging
+
+Set logging function to simple fprintf.
+---
+ src/c_init.cpp | 3 ++-
+ src/console.h | 3 +--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/c_init.cpp b/src/c_init.cpp
+index 542b066..a1ce500 100644
+--- a/src/c_init.cpp
++++ b/src/c_init.cpp
+@@ -141,7 +141,7 @@ console_t console_init =
+ intro
+ };
+
+-
++/*
+ void __acc_cdecl_va con_fprintf(FILE *f, const char *format, ...)
+ {
+ va_list args;
+@@ -156,6 +156,7 @@ void __acc_cdecl_va con_fprintf(FILE *f, const char *format, ...)
+ assert(con != me);
+ con->print0(f,buf);
+ }
++*/
+
+ #endif /* USE_CONSOLE */
+
+diff --git a/src/console.h b/src/console.h
+index eeee36e..4a2c4c0 100644
+--- a/src/console.h
++++ b/src/console.h
+@@ -123,8 +123,7 @@ console_t;
+
+
+ #if defined(__GNUC__)
+-void __acc_cdecl_va con_fprintf(FILE *f, const char *format, ...)
+- __attribute__((__format__(printf,2,3)));
++#define con_fprintf fprintf
+ #else
+ void __acc_cdecl_va con_fprintf(FILE *f, const char *format, ...);
+ #endif
+--
+1.7.10.4
+