Changeset c31922b in rtems-libbsd for freebsd/contrib/tcpdump/tcpdump.c


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

Fix RTEMS ifdef labelling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.