Changeset 3fcb8b4


Ignore:
Timestamp:
05/10/06 11:56:21 (15 years ago)
Author:
Shane Alcock <salcock@…>
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:
4e65f42
Parents:
77285d9
Message:

Added a couple of necessary fixes for FreeBSD compilation - defining PATH_MAX and including unistd.h for ssize_t and off_t
stdbool.h is no longer included if you're compiling as C++ as this causes conflicts under OpenBSD

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r5eeba76 r3fcb8b4  
    5555#else
    5656#  include <netdb.h>
     57#  ifndef PATH_MAX
     58#       define PATH_MAX 4096
     59#  endif
    5760#endif
    5861
  • lib/libtrace.h.in

    r77285d9 r3fcb8b4  
    9999#else
    100100#    include <netinet/in.h>
     101
     102#ifndef __cplusplus
    101103#    include <stdbool.h>
     104#endif
     105
    102106#    include <sys/types.h>
    103107#    include <sys/socket.h>
  • lib/libtraceio.h

    r8f45780 r3fcb8b4  
    1010#include <stdio.h>
    1111#endif
     12
     13#include <unistd.h>
    1214
    1315typedef struct libtrace_io_t libtrace_io_t;
Note: See TracChangeset for help on using the changeset viewer.