Changeset 11f84b3c in rtems


Ignore:
Timestamp:
Apr 19, 1999, 3:27:20 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ac91855d
Parents:
7cdf7fc1
Message:

After discussion with Eric Norum <eric@…>,
I added INSIDE_RTEMS_BSD_TCPIP_STACK that trips all the needed
macro definitions for a network driver.

Location:
c/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/Makefile.in

    r7cdf7fc1 r11f84b3c  
    3636#
    3737
    38 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    39      -DDIAGNOSTIC -DBOOTP_COMPAT
     38DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    4039CPPFLAGS +=
    4140CFLAGS   += $(LIBC_DEFINES)
  • c/src/libnetworking/rtems/rtems_bsdnet.h

    r7cdf7fc1 r11f84b3c  
    77
    88#include <rtems.h>
     9
     10/*
     11 *  If this file is included from inside the Network Stack proper or
     12 *  a device driver, then __INSIDE_RTEMS_BSD_TCPIP_STACK__ should be
     13 *  defined.  This triggers a number of internally used definitions.
     14 */
     15
     16#if defined(__INSIDE_RTEMS_BSD_TCPIP_STACK__)
     17#undef _COMPILING_BSD_KERNEL_
     18#undef KERNEL
     19#undef INET
     20#undef NFS
     21#undef DIAGNOSTIC
     22#undef BOOTP_COMPAT
     23
     24#define _COMPILING_BSD_KERNEL_
     25#define KERNEL
     26#define INET
     27#define NFS
     28#define DIAGNOSTIC
     29#define BOOTP_COMPAT
     30#endif
    931
    1032/*
  • c/src/libnetworking/rtems_servers/Makefile.in

    r7cdf7fc1 r11f84b3c  
    3434#
    3535
    36 DEFINES  += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
    37     -DDIAGNOSTIC -DBOOTP_COMPAT
     36DEFINES  += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    3837CPPFLAGS +=
    3938CFLAGS   +=
Note: See TracChangeset for help on using the changeset viewer.