mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fixes to get stuff to work after autoconf changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13578 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
65541445d0
commit
19cf3829e4
24 changed files with 135 additions and 106 deletions
|
@ -45,7 +45,7 @@
|
|||
#include <Foundation/NSDebug.h>
|
||||
|
||||
#include <string.h>
|
||||
#if HAVE_UNISTD_H
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
|
@ -53,29 +53,29 @@
|
|||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_WINDOWS_H
|
||||
#ifdef HAVE_WINDOWS_H
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_SIGNAL_H
|
||||
#ifdef HAVE_SYS_SIGNAL_H
|
||||
#include <sys/signal.h>
|
||||
#endif
|
||||
#if HAVE_SIGNAL_H
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
#include <signal.h>
|
||||
#endif
|
||||
#if HAVE_SYS_FILE_H
|
||||
#ifdef HAVE_SYS_FILE_H
|
||||
#include <sys/file.h>
|
||||
#endif
|
||||
#if HAVE_SYS_FCNTL_H
|
||||
#ifdef HAVE_SYS_FCNTL_H
|
||||
#include <sys/fcntl.h>
|
||||
#endif
|
||||
#if HAVE_SYS_IOCTL_H
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
#if HAVE_SYS_WAIT_H
|
||||
#ifdef HAVE_SYS_WAIT_H
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
#if HAVE_SYS_PARAM_H
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
|
@ -83,7 +83,7 @@
|
|||
* If we are on a streams based system, we need to include stropts.h
|
||||
* for definitions needed to set up slave pseudo-terminal stream.
|
||||
*/
|
||||
#if HAVE_SYS_STROPTS_H
|
||||
#ifdef HAVE_SYS_STROPTS_H
|
||||
#include <sys/stropts.h>
|
||||
#endif
|
||||
|
||||
|
@ -139,7 +139,7 @@ pty_master(char* name, int len)
|
|||
* If we have grantpt(), assume we are using sysv-style pseudo-terminals,
|
||||
* otherwise assume bsd style.
|
||||
*/
|
||||
#if HAVE_GRANTPT
|
||||
#ifdef HAVE_GRANTPT
|
||||
master = open("/dev/ptmx", O_RDWR);
|
||||
if (master >= 0)
|
||||
{
|
||||
|
@ -194,8 +194,8 @@ pty_slave(const char* name)
|
|||
int slave;
|
||||
|
||||
slave = open(name, O_RDWR);
|
||||
#if HAVE_SYS_STROPTS_H
|
||||
#if HAVE_PTS_STREAM_MODULES
|
||||
#ifdef HAVE_SYS_STROPTS_H
|
||||
#ifdef HAVE_PTS_STREAM_MODULES
|
||||
if (slave >= 0 && isastream(slave))
|
||||
{
|
||||
if (ioctl(slave, I_PUSH, "ptem") < 0)
|
||||
|
@ -1249,7 +1249,7 @@ GSCheckTasks()
|
|||
/*
|
||||
* Make sure task is run in it's own process group.
|
||||
*/
|
||||
#if HAVE_SETPGRP
|
||||
#ifdef HAVE_SETPGRP
|
||||
#ifdef SETPGRP_VOID
|
||||
setpgrp();
|
||||
#else
|
||||
|
@ -1261,7 +1261,7 @@ GSCheckTasks()
|
|||
#else
|
||||
pid = (int)getpid();
|
||||
#endif
|
||||
#if HAVE_SETPGID
|
||||
#ifdef HAVE_SETPGID
|
||||
setpgid(pid, pid);
|
||||
#endif
|
||||
#endif
|
||||
|
@ -1276,7 +1276,7 @@ GSCheckTasks()
|
|||
exit(1); /* Failed to open slave! */
|
||||
}
|
||||
|
||||
#if HAVE_SETSID
|
||||
#ifdef HAVE_SETSID
|
||||
i = setsid();
|
||||
#endif
|
||||
#ifdef TIOCNOTTY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue