mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-11 01:42:24 +02:00
remove defines which are part of posix
This commit is contained in:
28
src/os.h
28
src/os.h
@@ -143,34 +143,6 @@ typedef char* slot_t; /* used internally in utmp.c */
|
||||
# define FNBLOCK O_NONBLOCK
|
||||
#endif
|
||||
|
||||
|
||||
/*****************************************************************
|
||||
* Wait stuff
|
||||
*/
|
||||
|
||||
# include <sys/wait.h>
|
||||
|
||||
#ifndef WTERMSIG
|
||||
# define WTERMSIG(status) (status & 0177)
|
||||
#endif
|
||||
|
||||
#ifndef WSTOPSIG
|
||||
# define WSTOPSIG(status) ((status >> 8) & 0377)
|
||||
#endif
|
||||
|
||||
/* NET-2 uses WCOREDUMP */
|
||||
#if defined(WCOREDUMP) && !defined(WIFCORESIG)
|
||||
# define WIFCORESIG(status) WCOREDUMP(status)
|
||||
#endif
|
||||
|
||||
#ifndef WIFCORESIG
|
||||
# define WIFCORESIG(status) (status & 0200)
|
||||
#endif
|
||||
|
||||
#ifndef WEXITSTATUS
|
||||
# define WEXITSTATUS(status) ((status >> 8) & 0377)
|
||||
#endif
|
||||
|
||||
/*****************************************************************
|
||||
* user defineable stuff
|
||||
*/
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <locale.h>
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "fileio.h"
|
||||
#include "help.h"
|
||||
|
||||
Reference in New Issue
Block a user