Added use of __rtems__ rather than LINUX for RTEMS configuration.

This commit is contained in:
Joel Sherrill
1999-10-28 14:50:43 +00:00
parent bb43e0797f
commit be22768407
6 changed files with 14 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ INSTALL_CHANGE = @INSTALL_CHANGE@
# Add local stuff here using += # Add local stuff here using +=
# #
DEFINES += -DWEBS -DUEMF -DOS="LINUX" -DLINUX DEFINES += -DWEBS -DUEMF -DOS="RTEMS"
CPPFLAGS += CPPFLAGS +=
CFLAGS += CFLAGS +=

View File

@@ -59,10 +59,10 @@ static void put_ulong(strbuf_t *buf, unsigned long int value, int base,
/************************************ Code ************************************/ /************************************ Code ************************************/
/* /*
* "basename" returns a pointer to the last component of a pathname * "basename" returns a pointer to the last component of a pathname
* LINUX and LynxOS have their own basename function * LINUX, RTEMS, and LynxOS have their own basename function
*/ */
#if ! LINUX & ! LYNX #if ! LINUX & ! __rtems__ & ! LYNX
char_t *basename(char_t* name) char_t *basename(char_t* name)
{ {
char_t *cp; char_t *cp;
@@ -83,7 +83,7 @@ char_t *basename(char_t* name)
return ++cp; return ++cp;
} }
} }
#endif /* ! LINUX & ! LYNX */ #endif /* ! LINUX && ! __rtems__ && ! LYNX */
/******************************************************************************/ /******************************************************************************/
/* /*

View File

@@ -47,7 +47,7 @@
#include <stdio.h> #include <stdio.h>
#endif #endif
#if LINUX #if LINUX || __rtems__
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/param.h> #include <sys/param.h>
@@ -513,7 +513,7 @@ typedef int (*socketAccept_t)(int sid, char *ipaddr, int port);
/******************************* Per O/S Defines ******************************/ /******************************* Per O/S Defines ******************************/
#if VXW486 || LINUX || LYNX #if VXW486 || LINUX || __rtems__ || LYNX
#ifndef O_BINARY #ifndef O_BINARY
#define O_BINARY 0 #define O_BINARY 0
#endif #endif
@@ -569,7 +569,7 @@ extern char *bstrdupA(B_ARGS_DEC, char *s);
#endif /* UNICODE */ #endif /* UNICODE */
#endif /* BALLOC */ #endif /* BALLOC */
#if !LINUX #if !LINUX && !__rtems__
extern char_t* basename(char_t* name); extern char_t* basename(char_t* name);
#endif #endif

View File

@@ -35,7 +35,7 @@ INSTALL_CHANGE = @INSTALL_CHANGE@
# Add local stuff here using += # Add local stuff here using +=
# #
DEFINES += -DWEBS -DUEMF -DOS="LINUX" -DLINUX DEFINES += -DWEBS -DUEMF -DOS="RTEMS"
CPPFLAGS += CPPFLAGS +=
CFLAGS += CFLAGS +=

View File

@@ -59,10 +59,10 @@ static void put_ulong(strbuf_t *buf, unsigned long int value, int base,
/************************************ Code ************************************/ /************************************ Code ************************************/
/* /*
* "basename" returns a pointer to the last component of a pathname * "basename" returns a pointer to the last component of a pathname
* LINUX and LynxOS have their own basename function * LINUX, RTEMS, and LynxOS have their own basename function
*/ */
#if ! LINUX & ! LYNX #if ! LINUX & ! __rtems__ & ! LYNX
char_t *basename(char_t* name) char_t *basename(char_t* name)
{ {
char_t *cp; char_t *cp;
@@ -83,7 +83,7 @@ char_t *basename(char_t* name)
return ++cp; return ++cp;
} }
} }
#endif /* ! LINUX & ! LYNX */ #endif /* ! LINUX && ! __rtems__ && ! LYNX */
/******************************************************************************/ /******************************************************************************/
/* /*

View File

@@ -47,7 +47,7 @@
#include <stdio.h> #include <stdio.h>
#endif #endif
#if LINUX #if LINUX || __rtems__
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/param.h> #include <sys/param.h>
@@ -513,7 +513,7 @@ typedef int (*socketAccept_t)(int sid, char *ipaddr, int port);
/******************************* Per O/S Defines ******************************/ /******************************* Per O/S Defines ******************************/
#if VXW486 || LINUX || LYNX #if VXW486 || LINUX || __rtems__ || LYNX
#ifndef O_BINARY #ifndef O_BINARY
#define O_BINARY 0 #define O_BINARY 0
#endif #endif
@@ -569,7 +569,7 @@ extern char *bstrdupA(B_ARGS_DEC, char *s);
#endif /* UNICODE */ #endif /* UNICODE */
#endif /* BALLOC */ #endif /* BALLOC */
#if !LINUX #if !LINUX && !__rtems__
extern char_t* basename(char_t* name); extern char_t* basename(char_t* name);
#endif #endif