Overview
Comment: | Better check for madvise(). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
000b2dffdfde2710af2eeb7853892f52 |
User & Date: | js on 2009-05-24 00:26:23 |
Other Links: | manifest | tags |
Context
2009-05-24
| ||
00:42 |
Create a hardlink instead of a symlink to libobjfw.dll in tests. This way, it also works on Cygwin. check-in: ebfbdf512a user: js tags: trunk | |
00:26 | Better check for madvise(). check-in: 000b2dffdf user: js tags: trunk | |
00:18 | Get rid of dependency on getpagesize(). check-in: 127d635848 user: js tags: trunk | |
Changes
Modified configure.ac from [0125576a1c] to [1c1ce1109b].
︙ | ︙ | |||
46 47 48 49 50 51 52 | size_max="((size_t)-1)"]) AC_DEFINE_UNQUOTED(SIZE_MAX, $size_max, [Maximum value for size_t])]) AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl") AC_CHECK_FUNC(asprintf, [ have_asprintf="yes" | | | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | size_max="((size_t)-1)"]) AC_DEFINE_UNQUOTED(SIZE_MAX, $size_max, [Maximum value for size_t])]) AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl") AC_CHECK_FUNC(asprintf, [ have_asprintf="yes" AC_DEFINE(HAVE_ASPRINTF, 1, [Whether we have asprintf])], [ have_asprintf="no" AC_SUBST(ASPRINTF_C, "asprintf.c")]) AC_MSG_CHECKING(whether snprintf returns something useful) AC_CACHE_VAL(ac_cv_snprintf_useful_ret, [ AC_TRY_RUN([ #include <stdio.h> |
︙ | ︙ | |||
117 118 119 120 121 122 123 | ac_cv_have_ipv6="yes", ac_cv_have_ipv6="no", ac_cv_have_ipv6="no")]) AC_MSG_RESULT($ac_cv_have_ipv6) test x"$ac_cv_have_ipv6" = x"yes" && \ AC_DEFINE(HAVE_IPV6, 1, "Whether we have IPv6 support") | | | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | ac_cv_have_ipv6="yes", ac_cv_have_ipv6="no", ac_cv_have_ipv6="no")]) AC_MSG_RESULT($ac_cv_have_ipv6) test x"$ac_cv_have_ipv6" = x"yes" && \ AC_DEFINE(HAVE_IPV6, 1, "Whether we have IPv6 support") AC_CHECK_FUNC(madvise, [AC_DEFINE(HAVE_MADVISE, 1, [Whether we have madvise])]) AC_LANG([Objective C]) AC_PROG_OBJC OBJCFLAGS="$OBJCFLAGS -Wall -fobjc-exceptions" OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstString" LIBS="$LIBS -lobjc" |
︙ | ︙ |
Modified src/OFMutableString.m from [d29d560858] to [0d6ff799d4].
︙ | ︙ | |||
14 15 16 17 18 19 20 | #define _GNU_SOURCE #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #define _GNU_SOURCE #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #ifdef HAVE_MADVISE #include <sys/mman.h> #else #define madvise(addr, len, advise) #endif #import "OFMutableString.h" #import "OFExceptions.h" |
︙ | ︙ |
Modified src/OFString.m from [40c6a50185] to [796905757e].
︙ | ︙ | |||
12 13 14 15 16 17 18 | #import "config.h" #define _GNU_SOURCE #include <stdarg.h> #include <stdlib.h> #include <string.h> | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #import "config.h" #define _GNU_SOURCE #include <stdarg.h> #include <stdlib.h> #include <string.h> #ifdef HAVE_MADVISE #include <sys/mman.h> #else #define madvise(addr, len, advise) #endif #import "OFString.h" #import "OFAutoreleasePool.h" |
︙ | ︙ |