- Made use of readline wordexp conditional upon the presence of wordexp.h,
  which is correct, but excludes certain BSDs.
This commit is contained in:
Paul Beckingham 2014-01-12 14:49:42 -05:00
parent b81891c78f
commit cdc0c0a01a
4 changed files with 31 additions and 3 deletions

View file

@ -30,7 +30,9 @@
#include <string>
#include <stdio.h>
#ifdef HAVE_WORDEXP_H
#include <wordexp.h>
#endif
// Static class that offers a C++ API to readline C functions.
class Readline
@ -61,7 +63,11 @@ public:
void escapeSpecialChars(std::string& str);
private:
#ifdef HAVE_WORDEXP_H
wordexp_t _p;
#else
std::string _input;
#endif
};
#endif