>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Ben> So Lars> what kind of patch are you looking for? Some autoconf magic to | Lars> Ben> somehow detect a bad type for MAP_FAILED and to deal with Lars> it | Ben> regardless of platform? >> Lars> | Is it possible to do a reintepret_cast which would work Lars> always? | Something like | if (reinterpret_cast<void*>(mm) == Lars> reinterpret_cast<void*>(MAP_FAILED)) | or is C++ stupid enough Lars> to reject this when one type is already void*? Lars> Or we can perhaps just define our own MAP_FAILED. Lars> #undef MAP_FAILED #define MAP_FAILED (void*)(-1) Are we sure -1 is always the right value? JMarc