Overview
Comment: | Check for sys/mman.h before trying to use madvise. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
14ebaa7ca17f921ad1f0e3c966003b17 |
User & Date: | js on 2008-12-23 02:10:25 |
Other Links: | manifest | tags |
Context
2008-12-23
| ||
03:59 | Remove spaces and tabs at end of line. check-in: 7d7b89d775 user: js tags: trunk | |
02:10 | Check for sys/mman.h before trying to use madvise. check-in: 14ebaa7ca1 user: js tags: trunk | |
01:57 | Check for SIZE_T, fallback to SIZE_T_MAX or define as (size_t)-1. check-in: c180b76560 user: js tags: trunk | |
Changes
Modified configure.ac from [5e9b3903b6] to [80cf2ad06e].
︙ | ︙ | |||
96 97 98 99 100 101 102 103 104 105 106 107 108 109 | }], 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") test x"$GCC" = x"yes" && CFLAGS="$CFLAGS -Werror -pipe -g" test x"$GCC" = x"yes" && OBJCFLAGS="$OBJCFLAGS -Werror -pipe -g" if test x"$cross_compiling" = x"yes"; then case "$target" in *-*-mingw*) | > > | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | }], 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_HEADERS(sys/mman.h) test x"$GCC" = x"yes" && CFLAGS="$CFLAGS -Werror -pipe -g" test x"$GCC" = x"yes" && OBJCFLAGS="$OBJCFLAGS -Werror -pipe -g" if test x"$cross_compiling" = x"yes"; then case "$target" in *-*-mingw*) |
︙ | ︙ |
Modified src/OFString.m from [c064e2be95] to [845a3454e0].
︙ | ︙ | |||
11 12 13 14 15 16 17 | #import "config.h" #import <stdlib.h> #import <string.h> #import <ctype.h> | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #import "config.h" #import <stdlib.h> #import <string.h> #import <ctype.h> #ifdef HAVE_SYS_MMAN_H #import <sys/mman.h> #else #define madvise(addr, len, advise) #endif #import "OFString.h" #import "OFExceptions.h" |
︙ | ︙ |
Modified src/OFTCPSocket.h from [4b9806efa1] to [6c14a9bc26].
︙ | ︙ | |||
14 15 16 17 18 19 20 | /* * Headers for UNIX systems */ #ifndef _WIN32 #import <sys/types.h> #import <sys/socket.h> #import <netdb.h> | < | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /* * Headers for UNIX systems */ #ifndef _WIN32 #import <sys/types.h> #import <sys/socket.h> #import <netdb.h> #endif #import "OFObject.h" #import "OFStream.h" /* * Headers for Win32 |
︙ | ︙ |