Use POSIX macros for linux
This commit is contained in:
@@ -86,7 +86,7 @@ static char *util_locale ;
|
||||
|
||||
static pid_t gtob_pid = 0;
|
||||
static pid_t btop_pid = 0;
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED) || defined(linux)
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED) || defined(__linux__)
|
||||
static int chld_stat ;
|
||||
#else
|
||||
static union wait chld_stat ;
|
||||
|
||||
@@ -96,7 +96,7 @@ char *argv[];
|
||||
char *style ; /* style */
|
||||
int chk_fd;
|
||||
pid_t chld_pid = 0;
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED) || defined(linux)
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED) || defined(__linux__)
|
||||
int chld_stat ;
|
||||
#else
|
||||
union wait chld_stat ;
|
||||
|
||||
@@ -82,7 +82,7 @@ from the X Consortium.
|
||||
#include <stdint.h>
|
||||
#include "_fallibint.h"
|
||||
#include "_fallcint.h"
|
||||
#if defined(linux)
|
||||
#if defined(__linux__)
|
||||
#include <locale.h>
|
||||
#else
|
||||
#include <X11/Xlocale.h>
|
||||
|
||||
@@ -98,7 +98,7 @@ pragma on(alloca);
|
||||
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#if !defined(linux)
|
||||
#if !defined(__linux__)
|
||||
#define alloca ___builtin_alloca
|
||||
#endif
|
||||
#define ALLOCATE_LOCAL(size) alloca((int)(size))
|
||||
|
||||
@@ -1041,7 +1041,7 @@ char **fontname ;
|
||||
{
|
||||
FILE *fp ;
|
||||
pid_t chld_pid = 0;
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED) || defined(linux)
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED) || defined(__linux__)
|
||||
int chld_stat ;
|
||||
#else
|
||||
union wait chld_stat ;
|
||||
|
||||
@@ -186,7 +186,7 @@ struct ptobhead *head;
|
||||
char buf[BUFSIZE], *p;
|
||||
|
||||
pid_t chld_pid = 0;
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED) || defined(linux)
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED) || defined(__linux__)
|
||||
int chld_stat ;
|
||||
#else
|
||||
union wait chld_stat ;
|
||||
|
||||
Reference in New Issue
Block a user