Skip to content
Snippets Groups Projects
Commit 62c05b8c authored by Brooks Davis's avatar Brooks Davis
Browse files

devel/llbuild: improve committed config.h

Indicate that we do support mmap and mallctl.  This disables the use of
sbrk.

Differential Revision:	https://reviews.freebsd.org/D42975
parent 71866091
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ PORTNAME= llbuild
DISTVERSIONPREFIX= swift-DEVELOPMENT-
DISTVERSION= SNAPSHOT-2017-12-10
DISTVERSIONSUFFIX= -a
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= jonathan@FreeBSD.org
......@@ -14,7 +15,7 @@ LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
USES= cmake sbrk
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= apple
......
--- include/llvm/Config/config.h.orig
+++ include/llvm/Config/config.h
@@ -117,17 +117,17 @@
#define HAVE_MALLOC_ZONE_STATISTICS 1
/* Define to 1 if you have the `mallctl` function. */
-/* #undef HAVE_MALLCTL */
+#define HAVE_MALLCTL 1
/* Define to 1 if you have a working `mmap' system call. */
-#undef HAVE_MMAP
+#define HAVE_MMAP 1
/* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if
it uses MAP_ANON */
#undef HAVE_MMAP_ANONYMOUS
/* Define if mmap() can map files into memory */
-#undef HAVE_MMAP_FILE
+#define HAVE_MMAP_FILE 1
/* Define to 1 if you have the `posix_spawn' function. */
#define HAVE_POSIX_SPAWN 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment