Use POSIX macros for linux
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include "utility.h"
|
||||
#include "lutil.h"
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(__linux__)
|
||||
extern char * strdup(const char *);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user