mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Cygwin-related changes.
- Disabled check for secure temporary directories under Cygwin - objc-load.m codepaths used for MinGW are now also used for Cygwin. Even in case of some functionality that should be standard under UNIX systems, it turns out that this functionality is, sadly, not present under Cygwin (e.g. dladdr()). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
351c6d8b54
commit
d09edf1fff
3 changed files with 28 additions and 4 deletions
|
@ -1942,6 +1942,7 @@ NSTemporaryDirectory(void)
|
|||
if (baseTempDirName == nil)
|
||||
{
|
||||
#if defined(__CYGWIN__)
|
||||
#warning Basing temporary directory in /cygdrive/c; any reason?
|
||||
baseTempDirName = @"/cygdrive/c/";
|
||||
#elif defined(__MINGW__)
|
||||
baseTempDirName = @"C:\\";
|
||||
|
@ -1982,7 +1983,9 @@ NSTemporaryDirectory(void)
|
|||
perm = perm & 0777;
|
||||
|
||||
// Mateu Batle: secure temporary directories don't work in MinGW
|
||||
#ifndef __MINGW__
|
||||
// Ivan Vucica: there are also problems with Cygwin
|
||||
// probable cause: http://stackoverflow.com/q/9561759/39974
|
||||
#if !defined(__MINGW__) && !defined(__CYGWIN__)
|
||||
|
||||
#if defined(__MINGW__)
|
||||
uid = owner;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue