* slcommon.c (_pSLsecure_issetugid): Remove dependency on glibc private

function __libc_enable_secure().
This commit is contained in:
Leonard den Ottolander 2005-11-15 20:51:31 +00:00
parent 12e531832f
commit f235c1b358
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-11-15 Leonard den Ottolander <leonard den ottolander nl>
* slcommon.c (_pSLsecure_issetugid): Remove dependency on glibc
private function __libc_enable_secure().
2005-11-10 Leonard den Ottolander <leonard den ottolander nl>
* *: Upgrade slang to 2.0.5.

View File

@ -191,7 +191,7 @@ char *SLcalloc (unsigned int nelems, unsigned int len)
return p;
}
#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2)
#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2) && 0
extern int __libc_enable_secure;
# define HAVE___LIBC_ENABLE_SECURE 1
#endif
@ -201,7 +201,7 @@ int _pSLsecure_issetugid (void)
#ifdef HAVE_ISSETUGID
return (1 == issetugid ());
#else
# ifdef HAVE___LIBC_ENABLE_SECURE
# if defined HAVE___LIBC_ENABLE_SECURE && 0
return __libc_enable_secure;
# else
# if defined(HAVE_GETUID) && defined(HAVE_GETEUID) && defined(HAVE_GETGID) && defined(HAVE_GETEUID)