Changeset c31922b in rtems-libbsd


Ignore:
Timestamp:
Jun 19, 2015, 5:32:13 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, 5283630d2c9d40deb0183696d278e02644fe4326, freebsd-9.3, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
59bc7c1
Parents:
54409c7
Message:

Fix RTEMS ifdef labelling.

Location:
freebsd/contrib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • freebsd/contrib/libpcap/gencode.c

    r54409c7 rc31922b  
    434434#endif /* WIN32 */
    435435{
    436 #if __rtems__
     436#ifdef __rtems__
    437437        int n_errors;
    438438#else
    439439        extern int n_errors;
    440 #endif
     440#endif /* __rtems__ */
    441441        const char * volatile xbuf = buf;
    442442        u_int len;
  • freebsd/contrib/tcpdump/tcpdump.c

    r54409c7 rc31922b  
    4040/* $FreeBSD$ */
    4141
     42#ifdef __rtems__
     43#define __need_getopt_newlib
     44#include <getopt.h>
     45#define setpriority(a, b, c)
     46#include <machine/rtems-bsd-program.h>
     47#include <machine/rtems-bsd-commands.h>
     48#endif /* __rtems__ */
     49
    4250/*
    4351 * tcpdump - monitor tcp/ip traffic on an ethernet.
     
    5058#ifdef HAVE_CONFIG_H
    5159#include "config.h"
    52 #endif
    53 
    54 #if __rtems__
    55 #define __need_getopt_newlib
    56 #include <getopt.h>
    57 #define setpriority(a, b, c)
    58 #include <machine/rtems-bsd-program.h>
    59 #include <machine/rtems-bsd-commands.h>
    6060#endif
    6161
     
    21212121usage(void)
    21222122{
    2123 #if __rtems__
     2123#ifdef __rtems__
    21242124  #define version "RTEMS Version"
    21252125#else
    21262126        extern char version[];
    2127 #endif
     2127#endif /* __rtems__ */
    21282128#ifndef HAVE_PCAP_LIB_VERSION
    21292129#if defined(WIN32) || defined(HAVE_PCAP_VERSION)
Note: See TracChangeset for help on using the changeset viewer.