mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Make it build on FreeBSD 7.
There's a call to mkdtemp(), which is supposed to be in stdlib.h. However, until FreeBSD 8 the definition was only in unistd.h, so we need to include that header for 7.
This commit is contained in:
parent
76de0a4498
commit
6f971d8396
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=297842
@ -30,4 +30,11 @@ QT_COMPONENTS= dbus qmake_build moc_build uic_build rcc_build
|
||||
USE_XZ= yes
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# mkdtemp() is not defined in stdlib.h in FreeBSD 7.
|
||||
.if ${OSVERSION} < 800000
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-importer__fileutils.cpp
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- importer/fileutils.cpp~ 2012-05-30 19:27:44.000000000 -0300
|
||||
+++ importer/fileutils.cpp 2012-05-30 19:27:57.000000000 -0300
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
namespace Gwenview
|
||||
{
|
Loading…
Reference in New Issue
Block a user