mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] nsis patch


From: freeman
Subject: [Mingw-cross-env-list] nsis patch
Date: Wed, 1 Aug 2012 00:49:51 +0200

Hello,

I'm sending this email to report a minor bug
nsis 2.4.6 doesn't build on 64 bits debian testing system.

Failed to build package nsis!
------------------------------------------------------------
In file included from Source/script.cpp:46:0:
/usr/include/unistd.h:350:12: note: 'int close(int)' declared here,
later in the translation unit
scons: *** [build/release/makensis/script.o] Error 1
scons: building terminated because of errors.
make[1]: *** [build-only-nsis] Error 2
make[1]: Leaving directory `/opt/mxe'
real    0m30.805s
user    0m26.938s
sys     0m2.688s

I needed to patch nsis-2.4.6-src/Source/util.h to add "include unistd.h"

@@ -25,6 +25,7 @@
 #ifndef _WIN32
 #  include <iconv.h>
 #  include <stdio.h>
+#  include <unistd.h>
 #endif

regards,
freeman



reply via email to

[Prev in Thread] Current Thread [Next in Thread]