Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
ace255ed
Commit
ace255ed
authored
Nov 15, 2016
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop platform support: unifdef Lynx.
Fixes ArcticaProject/nx-libs#272.
parent
d12f9524
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
15 additions
and
128 deletions
+15
-128
Imake.cf
nx-X11/config/cf/Imake.cf
+0
-28
xorg.cf
nx-X11/config/cf/xorg.cf
+1
-1
Xarch.h
nx-X11/include/Xarch.h
+1
-15
Xos.h
nx-X11/include/Xos.h
+1
-1
Xos_r.h
nx-X11/include/Xos_r.h
+3
-18
ConnDis.c
nx-X11/lib/X11/ConnDis.c
+0
-4
ImUtil.c
nx-X11/lib/X11/ImUtil.c
+0
-4
PutImage.c
nx-X11/lib/X11/PutImage.c
+0
-4
lcDefConv.c
nx-X11/lib/X11/lcDefConv.c
+1
-1
lcGenConv.c
nx-X11/lib/X11/lcGenConv.c
+1
-1
Imakefile
nx-X11/programs/Xserver/Imakefile
+2
-3
shm.c
nx-X11/programs/Xserver/Xext/shm.c
+0
-5
sync.c
nx-X11/programs/Xserver/Xext/sync.c
+1
-1
xvmc.c
nx-X11/programs/Xserver/Xext/xvmc.c
+0
-5
servermd.h
nx-X11/programs/Xserver/include/servermd.h
+0
-5
access.c
nx-X11/programs/Xserver/os/access.c
+0
-8
connection.c
nx-X11/programs/Xserver/os/connection.c
+0
-8
io.c
nx-X11/programs/Xserver/os/io.c
+0
-4
osinit.c
nx-X11/programs/Xserver/os/osinit.c
+2
-2
utils.c
nx-X11/programs/Xserver/os/utils.c
+1
-5
xdmcp.c
nx-X11/programs/Xserver/os/xdmcp.c
+0
-4
xkbAccessX.c
nx-X11/programs/Xserver/xkb/xkbAccessX.c
+1
-1
No files found.
nx-X11/config/cf/Imake.cf
View file @
ace255ed
...
...
@@ -1006,34 +1006,6 @@ XCOMM Keep cpp from replacing path elements containing i486/i586/i686
# endif
#endif /* linux || __GLIBC__ */
#if (defined(__Lynx__) || defined(Lynx)) && (defined(i386) || defined(__i386__) || defined(__x86__) || defined(__powerpc__) || defined(__sparc__) || defined(sparc))
# define MacroIncludeFile <lynx.cf>
# define MacroFile lynx.cf
# define LynxOSArchitecture
# undef __Lynx__
# undef Lynx
# undef lynx
# if defined(i386) || defined(__i386__) || defined(__x86__)
# define i386Architecture
# undef i386
# undef __i386__
# undef __x86__
# endif
# ifdef __powerpc__
# define PpcArchitecture
# undef __powerpc__
# endif
# if defined(sparc) || defined(__sparc__)
# define SparcArchitecture
# undef sparc
# undef __sparc__
# endif
/* for compatibility with 3.3.x */
# ifdef PpcArchitecture
# define PowerPCArchitecture
# endif
#endif /* LynxOS AT/PPC/microSPARC */
#ifdef __uxp__
# define MacroIncludeFile <fujitsu.cf>
# define MacroFile fujitsu.cf
...
...
nx-X11/config/cf/xorg.cf
View file @
ace255ed
...
...
@@ -512,7 +512,7 @@ IPLAN2P8_DEFS = -DUSE_IPLAN2P8
#ifndef BuildScanpci
# if SystemV || SystemV4 || \
(defined(LinuxArchitecture) && !defined(Mc68020Architecture)) || \
defined(i386BsdArchitecture) ||
defined(LynxOSArchitecture) ||
\
defined(i386BsdArchitecture) || \
defined(GNUMachArchitecture) || \
(defined(KFreeBSDArchitecture) && defined(i386Architecture))
# define BuildScanpci YES
...
...
nx-X11/include/Xarch.h
View file @
ace255ed
...
...
@@ -73,13 +73,6 @@
#if !defined(BYTE_ORDER) && defined(__BYTE_ORDER)
#define BYTE_ORDER __BYTE_ORDER
#endif
#elif defined(Lynx)
#if 0
/* LynxOS 2.4.0 has wrong defines in bsd/ip.h */
#include <bsd/in.h>
#include <bsd/in_systm.h>
#include <bsd/ip.h>
#endif
#endif
#ifndef BYTE_ORDER
...
...
@@ -98,14 +91,7 @@
#endif
#endif
#ifdef Lynx
#if defined(i386) || defined(__i386__) || defined(__x86__)
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
#endif
#if (defined(sun) && defined(SVR4)) && !defined(Lynx)
#if (defined(sun) && defined(SVR4))
#include <sys/isa_defs.h>
#ifdef _LITTLE_ENDIAN
#define BYTE_ORDER LITTLE_ENDIAN
...
...
nx-X11/include/Xos.h
View file @
ace255ed
...
...
@@ -219,7 +219,7 @@ struct timeval {
(t)->tv_sec = _gtodtmp.time; \
(t)->tv_usec = _gtodtmp.millitm * 1000; \
}
#elif defined(_SEQUENT_)
|| defined(Lynx)
#elif defined(_SEQUENT_)
#include <time.h>
#elif defined (__QNX__)
typedef
unsigned
long
fd_mask
;
...
...
nx-X11/include/Xos_r.h
View file @
ace255ed
...
...
@@ -197,14 +197,6 @@ extern void XtProcessUnlock(
# undef _POSIX_THREAD_SAFE_FUNCTIONS
#endif
/*
* LynxOS 3.1 defines _POSIX_THREAD_SAFE_FUNCTIONS but
* getpwuid_r has different semantics than defined by POSIX
*/
#if defined(Lynx) && defined(_POSIX_THREAD_SAFE_FUNCTIONS)
# undef _POSIX_THREAD_SAFE_FUNCTIONS
#endif
/***** <pwd.h> wrappers *****/
...
...
@@ -334,18 +326,11 @@ typedef struct {
struct
passwd
pws
;
char
pwbuf
[
X_LINE_MAX
];
}
_Xgetpwparams
;
# if defined(_POSIX_REENTRANT_FUNCTIONS) || !defined(SVR4) || defined(Lynx)
# ifndef Lynx
# define _XGetpwuid(u,p) \
# if defined(_POSIX_REENTRANT_FUNCTIONS) || !defined(SVR4)
# define _XGetpwuid(u,p) \
((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
#
define _XGetpwnam(u,p) \
# define _XGetpwnam(u,p) \
((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
# else
/* Lynx */
# define _XGetpwuid(u,p) \
((getpwuid_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
# define _XGetpwnam(u,p) \
((getpwnam_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
# endif
# else
/* SVR4 */
# define _XGetpwuid(u,p) \
((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws)
...
...
nx-X11/lib/X11/ConnDis.c
View file @
ace255ed
...
...
@@ -67,12 +67,8 @@ in this Software without prior written authorization from The Open Group.
#include <unistd.h>
#if !defined(WIN32)
#ifndef Lynx
#include <sys/socket.h>
#else
#include <socket.h>
#endif
#else
#include <nx-X11/Xwindows.h>
#endif
...
...
nx-X11/lib/X11/ImUtil.c
View file @
ace255ed
...
...
@@ -238,10 +238,6 @@ static void _putbits(
*
*/
#if defined(Lynx) && defined(ROUNDUP)
#undef ROUNDUP
#endif
#define ROUNDUP(nbytes, pad) ((((nbytes) + ((pad)-1)) / (pad)) * ((pad)>>3))
#define XYNORMALIZE(bp, img) \
...
...
nx-X11/lib/X11/PutImage.c
View file @
ace255ed
...
...
@@ -39,10 +39,6 @@ in this Software without prior written authorization from The Open Group.
#define RConst const
#endif
#if defined(Lynx) && defined(ROUNDUP)
#undef ROUNDUP
#endif
/* assumes pad is a power of 2 */
#define ROUNDUP(nbytes, pad) (((nbytes) + ((pad) - 1)) & ~(long)((pad) - 1))
...
...
nx-X11/lib/X11/lcDefConv.c
View file @
ace255ed
...
...
@@ -44,7 +44,7 @@
#define MB_LEN_MAX 6
#endif
#if !defined(
Lynx_22) && !defined(
X_LOCALE)
#if !defined(X_LOCALE)
#define STDCVT
#endif
...
...
nx-X11/lib/X11/lcGenConv.c
View file @
ace255ed
...
...
@@ -53,7 +53,7 @@
#include "XlcGeneric.h"
#include <stdio.h>
#if !defined(
Lynx_22) && !defined(
X_LOCALE)
#if !defined(X_LOCALE)
#define STDCVT
#endif
...
...
nx-X11/programs/Xserver/Imakefile
View file @
ace255ed
...
...
@@ -248,8 +248,7 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXmiexpose.o \
hw/nxagent/NXresource.o \
hw/nxagent/NXdamage.o
#elif !defined(LynxOSArchitecture) && \
!defined(Win32Architecture) && \
#elif !defined(Win32Architecture) && \
!defined(QNX4Architecture)
NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXwindow.o \
...
...
@@ -516,7 +515,7 @@ ServerTarget(NXWin,$(NXWINDIRS),$(NXWINOBJS), \
MIEXTDIRS = $(SHADOWDIR) $(LAYERDIR) $(ROOTLESSDIR) $(MIDAMAGEDIR)
IPLANDIRS = $(IPLAN2P2DIR) $(IPLAN2P4DIR) $(IPLAN2P8DIR)
DDXDIRS = $(DECWSDDXDIR) $(SUNDDXDIR)
$(LYNXDDXDIR)
\
DDXDIRS = $(DECWSDDXDIR) $(SUNDDXDIR) \
$(HPDDXDIR) $(XFREE86DDXDIR) \
$(NXAGENTDDXDIR) $(NXWINDDXDIR)
SUBDIRS = $(STDDIRS) \
...
...
nx-X11/programs/Xserver/Xext/shm.c
View file @
ace255ed
...
...
@@ -34,13 +34,8 @@ in this Software without prior written authorization from The Open Group.
#endif
#include <sys/types.h>
#ifndef Lynx
#include <sys/ipc.h>
#include <sys/shm.h>
#else
#include <ipc.h>
#include <shm.h>
#endif
#include <unistd.h>
#include <sys/stat.h>
#include <nx-X11/X.h>
...
...
nx-X11/programs/Xserver/Xext/sync.c
View file @
ace255ed
...
...
@@ -71,7 +71,7 @@ PERFORMANCE OF THIS SOFTWARE.
#include "protocol-versions.h"
#include <stdio.h>
#if !defined(WIN32)
&& !defined(Lynx)
#if !defined(WIN32)
#include <sys/time.h>
#endif
...
...
nx-X11/programs/Xserver/Xext/xvmc.c
View file @
ace255ed
...
...
@@ -22,14 +22,9 @@
#include "xvmcext.h"
#ifdef HAS_XVMCSHM
#ifndef Lynx
#include <sys/ipc.h>
#include <sys/types.h>
#include <sys/shm.h>
#else
#include <ipc.h>
#include <shm.h>
#endif
/* Lynx */
#endif
/* HAS_XVMCSHM */
...
...
nx-X11/programs/Xserver/include/servermd.h
View file @
ace255ed
...
...
@@ -128,11 +128,6 @@ SOFTWARE.
#define BITMAP_BIT_ORDER MSBFirst
#define GLYPHPADBYTES 4
/* XXX Should this be for Lynx only? */
#ifdef Lynx
#define BITMAP_SCANLINE_UNIT 8
#endif
#endif
/* PowerPC */
#if defined(__sh__)
...
...
nx-X11/programs/Xserver/os/access.c
View file @
ace255ed
...
...
@@ -76,11 +76,7 @@ SOFTWARE.
#include <errno.h>
#include <sys/types.h>
#ifndef WIN32
#ifndef Lynx
#include <sys/socket.h>
#else
#include <socket.h>
#endif
#include <sys/ioctl.h>
#include <ctype.h>
...
...
@@ -173,11 +169,7 @@ SOFTWARE.
#endif
/* WIN32 */
#ifndef PATH_MAX
#ifndef Lynx
#include <sys/param.h>
#else
#include <param.h>
#endif
#ifndef PATH_MAX
#ifdef MAXPATHLEN
#define PATH_MAX MAXPATHLEN
...
...
nx-X11/programs/Xserver/os/connection.c
View file @
ace255ed
...
...
@@ -80,11 +80,7 @@ SOFTWARE.
#include <stdlib.h>
#ifndef WIN32
#if defined(Lynx)
#include <socket.h>
#else
#include <sys/socket.h>
#endif
#ifdef hpux
#include <sys/utsname.h>
...
...
@@ -125,11 +121,7 @@ SOFTWARE.
# include <arpa/inet.h>
#endif
#ifndef Lynx
#include <sys/uio.h>
#else
#include <uio.h>
#endif
#endif
/* WIN32 */
#include "misc.h"
#include "osdep.h"
...
...
nx-X11/programs/Xserver/os/io.c
View file @
ace255ed
...
...
@@ -71,11 +71,7 @@ SOFTWARE.
#include <nx-X11/Xmd.h>
#include <errno.h>
#if !defined(WIN32)
#ifndef Lynx
#include <sys/uio.h>
#else
#include <uio.h>
#endif
#endif
#include <nx-X11/X.h>
#include <nx-X11/Xproto.h>
...
...
nx-X11/programs/Xserver/os/osinit.c
View file @
ace255ed
...
...
@@ -67,11 +67,11 @@ SOFTWARE.
#endif
#endif
#if defined(
Lynx) || defined(
__SCO__)
#if defined(__SCO__)
#include <sys/wait.h>
#endif
#if !defined(SYSV) && !defined(WIN32) && !defined(
Lynx) && !defined(
QNX4)
#if !defined(SYSV) && !defined(WIN32) && !defined(QNX4)
#include <sys/resource.h>
#endif
...
...
nx-X11/programs/Xserver/os/utils.c
View file @
ace255ed
...
...
@@ -113,7 +113,7 @@ OR PERFORMANCE OF THIS SOFTWARE.
#ifndef WIN32
#include <sys/wait.h>
#endif
#if !defined(SYSV) && !defined(WIN32) && !defined(
Lynx) && !defined(
QNX4)
#if !defined(SYSV) && !defined(WIN32) && !defined(QNX4)
#include <sys/resource.h>
#endif
#include <time.h>
...
...
@@ -329,11 +329,7 @@ OsSignal(sig, handler)
#endif
#ifndef PATH_MAX
#ifndef Lynx
#include <sys/param.h>
#else
#include <param.h>
#endif
#ifndef PATH_MAX
#ifdef MAXPATHLEN
#define PATH_MAX MAXPATHLEN
...
...
nx-X11/programs/Xserver/os/xdmcp.c
View file @
ace255ed
...
...
@@ -28,12 +28,8 @@
#include <nx-X11/Xos.h>
#if !defined(WIN32)
#ifndef Lynx
#include <sys/param.h>
#include <sys/socket.h>
#else
#include <socket.h>
#endif
#include <netinet/in.h>
#include <netdb.h>
#endif
...
...
nx-X11/programs/Xserver/xkb/xkbAccessX.c
View file @
ace255ed
...
...
@@ -38,7 +38,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <nx-X11/keysym.h>
#include "inputstr.h"
#include <xkbsrv.h>
#if !defined(WIN32)
&& !defined(Lynx)
#if !defined(WIN32)
#include <sys/time.h>
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment