Changeset 2288

Show
Ignore:
Timestamp:
11/02/11 13:01:53 (19 months ago)
Author:
peter
Message:

Improve OpenBSD compatibility with two patches from Brad Smith

Location:
trunk/pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/configure.ac

    r2279 r2288  
    122122        THREADFLAGS="-pthread" 
    123123        CXXFLAGS="-D_GNU_SOURCE $CXXFLAGS" 
    124         ;; 
    125 openbsd*) 
    126         AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) 
    127         DYNLINKFLAGS="-rdynamic" 
    128         LDFLAGS="-lc_r $LDFLAGS" 
    129         CXXFLAGS="-pthread $CXXFLAGS" 
    130124        ;; 
    131125*) 
  • trunk/pdns/pdns/dns.hh

    r2231 r2288  
    193193#define BYTE_ORDER 1 
    194194#define LITTLE_ENDIAN 1 
    195 #elif __FreeBSD__ || __APPLE__ 
     195#elif __FreeBSD__ || __APPLE__ || __OpenBSD__ 
    196196#include <machine/endian.h> 
    197197#elif __linux__