mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/nsis: Include unistd.h to fix compile.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
f38d8f9bf1
commit
a9249246ec
2 changed files with 13 additions and 1 deletions
10
development/nsis/nsis-fix-compile.patch
Normal file
10
development/nsis/nsis-fix-compile.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- nsis-2.46-src/Source/script.cpp.orig 2012-09-19 07:37:04.579646966 +0700
|
||||
+++ nsis-2.46-src/Source/script.cpp 2012-09-19 07:37:34.676226671 +0700
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "Platform.h"
|
||||
#include <stdio.h>
|
||||
+#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include "tokens.h"
|
||||
#include "build.h"
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=nsis
|
||||
VERSION=2.46
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
|
@ -72,6 +72,8 @@ unzip $CWD/$PRGNAM-$VERSION.zip -d $PKG/usr/lib${LIBDIRSUFFIX}
|
|||
chown -R root:root $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
|
||||
chmod -R u+w,go+r-w,a-s $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
|
||||
|
||||
patch -p1 < $CWD/nsis-fix-compile.patch
|
||||
|
||||
# PREFIX=$PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION search located zip extracted dir.
|
||||
# *makensis* will be placed in $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
|
||||
scons \
|
||||
|
|
Loading…
Reference in a new issue