Skip to content

Commit

Permalink
duplicate header change to dnsdist.cc; make openbsd exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Jun 30, 2016
1 parent 9c8aa82 commit 424bdfb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pdns/README-dnsdist.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ make

To build on OS X, `./configure LIBEDIT_LIBS='-L/usr/lib -ledit' LIBEDIT_CFLAGS=-I/usr/include/editline`

To build on OpenBSD, `./configure CXX=eg++ CPP=ecpp LIBEDIT_LIBS='-ledit -lcurses' LIBEDIT_CFLAGS=-I/usr/include/readline`
To build on OpenBSD, `./configure CXX=eg++ CPP=ecpp LIBEDIT_LIBS='-ledit -lcurses' LIBEDIT_CFLAGS=' '`

On other recent platforms, installing a Lua and the system C++ compiler should be enough.

Expand Down
7 changes: 7 additions & 0 deletions pdns/dnsdist-console.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#include "dnsdist.hh"
#include "sodcrypto.hh"

#if defined (__OpenBSD__)
#include <readline/readline.h>
#include <readline/history.h>
#else
#include <editline/readline.h>
#endif

#include <fstream>
#include "dolog.hh"
#include "ext/json11/json11.hpp"
Expand Down
8 changes: 7 additions & 1 deletion pdns/dnsdist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
#include <netinet/tcp.h>
#include <limits>
#include "dolog.hh"
#include <readline.h>

#if defined (__OpenBSD__)
#include <readline/readline.h>
#else
#include <editline/readline.h>
#endif

#include "dnsname.hh"
#include "dnswriter.hh"
#include "base64.hh"
Expand Down

0 comments on commit 424bdfb

Please sign in to comment.