Changeset 9ee7134


Ignore:
Timestamp:
04/08/06 16:15:09 (16 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
23971d0
Parents:
af52072
Message:

More portability fixes

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/fifo.c

    r5da3315 r9ee7134  
    3535#include <stdio.h> /* sprintf, printf */
    3636#include <assert.h> /* assert */
    37 #include <string.h> /* bzero */
     37#include "libtrace_int.h"
     38
     39#include <inttypes.h>
     40
    3841#include "fifo.h"
    39 #include "libtrace_int.h"
    40 
    41 #include <sys/types.h>
    42 
    43 #ifdef HAVE_INTTYPES_H
    44 # include <inttypes.h>
    45 #else
    46 # error "Can't find inttypes.h, this needs to be fixed"
    47 #endif
    48 
    49 #ifdef HAVE_STDDEF_H
    50 # include <stddef.h>
    51 #else
    52 # error "Can't find stddef.h - do you define ptrdiff_t elsewhere"
    53 #endif
    54 
    55 #include <netinet/in.h>
    5642
    5743
     
    114100}
    115101
    116 void tracefifo_flush(struct tracefifo_t *fifo __attribute__((unused))) {
     102void tracefifo_flush(struct tracefifo_t *fifo UNUSED) {
    117103        /* do nothing */
    118104        return;
  • lib/fifo.h

    r7068467 r9ee7134  
    3232#ifndef _FIFO_H_
    3333#define _FIFO_H_
    34 #include <inttypes.h>
    3534
    3635struct tracefifo_t;
Note: See TracChangeset for help on using the changeset viewer.