Use POSIX macros for linux

This commit is contained in:
chase
2018-05-24 16:24:41 -05:00
committed by Jon Trulson
parent 164e695cd0
commit 4f5e7fe5e3
265 changed files with 394 additions and 394 deletions

View File

@@ -35,7 +35,7 @@
#include <stdlib.h>
#define XOS_USE_NO_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#if defined(__linux__)
#undef SVR4
#endif
#include <X11/Xos_r.h>

View File

@@ -428,7 +428,7 @@ setinput (FILE* f)
return(-1);
}
#if !defined(linux)
#if !defined(__linux__)
/* no madvise so we lose this optimization */
madvise(start_of_mmapped_area, len, MADV_SEQUENTIAL);
#endif

View File

@@ -39,7 +39,7 @@
#include <sys/file.h>
#define XOS_USE_NO_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#if defined(__linux__)
#undef SVR4
#endif
#include <X11/Xos_r.h>

View File

@@ -12,7 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if (defined(sun) && defined(_XOPEN_SOURCE)) || defined(linux)
#if (defined(sun) && defined(_XOPEN_SOURCE)) || defined(__linux__)
#include <time.h>
#endif
#include "csa.h"

View File

@@ -30,7 +30,7 @@
#define XOS_USE_NO_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#if defined(__linux__)
#undef SVR4
#endif
#include <X11/Xos_r.h>

View File

@@ -30,7 +30,7 @@
#define XOS_USE_NO_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#if defined(__linux__)
#undef SVR4
#endif
#include <X11/Xos_r.h>

View File

@@ -30,7 +30,7 @@
#define XOS_USE_NO_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#if defined(__linux__)
#undef SVR4
#endif
#include <X11/Xos_r.h>

View File

@@ -31,7 +31,7 @@
#define XOS_USE_NO_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#if defined(__linux__)
#undef SVR4
#endif
#include <X11/Xos_r.h>

View File

@@ -32,7 +32,7 @@
#include <stdio.h>
#define XOS_USE_NO_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#if defined(__linux__)
#undef SVR4
#endif
#include <X11/Xos_r.h>

View File

@@ -30,7 +30,7 @@
#define XOS_USE_NO_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#if defined(__linux__)
#undef SVR4
#endif
#include <X11/Xos_r.h>

View File

@@ -37,7 +37,7 @@
#define XOS_USE_NO_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#if defined(__linux__)
#undef SVR4
#endif
#include <X11/Xos_r.h>

View File

@@ -28,7 +28,7 @@
* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
*/
#if defined(linux)
#if defined(__linux__)
#define _POSIX_C_SOURCE 2
#endif
@@ -493,7 +493,7 @@ init_alarm()
extern void garbage_collect();
extern void debug_switch();
#if defined(SVR4) && !defined(linux)
#if defined(SVR4) && !defined(__linux__)
extern void (*sigset(int, void (*)(int)))(int);
sigset(SIGUSR1, garbage_collect);
sigset(SIGALRM, garbage_collect);
@@ -695,7 +695,7 @@ main(int argc, char **argv)
if (udp_transp == (SVCXPRT *)-1) {
udp_transp = svcudp_create(standalone ? RPC_ANYSOCK : 0
#if defined(_AIX) || defined(hpV4) || defined(linux) || defined(CSRG_BASED)
#if defined(_AIX) || defined(hpV4) || defined(__linux__) || defined(CSRG_BASED)
);
#else
,0,0);

View File

@@ -41,7 +41,7 @@
#include "utility.h"
#include "lutil.h"
#if !defined(linux)
#if !defined(__linux__)
extern char * strdup(const char *);
#endif