OpenBSD fixes for DtWidget, dtaction, dtappbuilder.
This commit is contained in:
committed by
Jon Trulson
parent
8bbf5a7a1b
commit
3718075b7c
@@ -295,7 +295,7 @@ main(
|
||||
|
||||
XtSetLanguageProc(NULL, NULL, NULL);
|
||||
_DtEnvControl(DT_ENV_SET);
|
||||
(void) signal(SIGCLD, (void (*)())SIG_IGN);
|
||||
(void) signal(SIGCHLD, (void (*)())SIG_IGN);
|
||||
|
||||
/* Initialize the toolkit and open the display */
|
||||
XtToolkitInitialize() ;
|
||||
@@ -407,7 +407,7 @@ SetGidUid ( unsigned short rgid, unsigned short ruid )
|
||||
/* fix process gid */
|
||||
#if defined(SVR4) || defined(_AIX)
|
||||
setgid(rgid);
|
||||
#elif defined(__osf__) || defined(linux)
|
||||
#elif defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
setregid(rgid, rgid);
|
||||
#elif defined(__hpux)
|
||||
setresgid(rgid, rgid, rgid);
|
||||
@@ -418,7 +418,7 @@ SetGidUid ( unsigned short rgid, unsigned short ruid )
|
||||
/* fix process uid */
|
||||
#if defined (SVR4) || defined (_AIX)
|
||||
setuid(ruid);
|
||||
#elif defined(__osf__) || defined(linux)
|
||||
#elif defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
setreuid(ruid, ruid);
|
||||
#elif defined(__hpux)
|
||||
setresuid(ruid, ruid, ruid);
|
||||
|
||||
Reference in New Issue
Block a user