remove defines which are part of posix

This commit is contained in:
Amadeusz Sławiński
2017-09-21 13:28:07 +02:00
parent 14b54b47bd
commit 184cf03663
3 changed files with 2 additions and 28 deletions

View File

@@ -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
*/

View File

@@ -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>

View File

@@ -40,6 +40,7 @@
#include <stdbool.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include "fileio.h"
#include "help.h"