]> git.lyx.org Git - lyx.git/blobdiff - src/ispell.C
move some selection related stuff over to textcursor.C
[lyx.git] / src / ispell.C
index 07db2583e74a30b79750309a245707b9daf9c14c..ee75bf507c6748e6eebaf4778136737e2ea4c785 100644 (file)
 #include "support/forkedcall.h"
 #include "support/lstrings.h"
 
+// HP-UX 11.x doesn't have this header
+#ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#endif
+#include <sys/time.h>
 
 #ifndef CXX_GLOBAL_CSTD
 using std::strcpy;
@@ -62,7 +66,7 @@ private:
 
 int LaunchIspell::start()
 {
-       command_ = "ispell";
+       command_ = lyxrc.isp_command;
        return runNonBlocking();
 }
 
@@ -182,7 +186,7 @@ ISpell::ISpell(BufferParams const & params, string const & lang)
 
        // static due to the setvbuf. Ugly.
        static char o_buf[BUFSIZ];
-       
+
        // We need to throw an exception not do this
        pipein[0] = pipein[1] = pipeout[0] = pipeout[1]
                = pipeerr[0] = pipeerr[1] = -1;
@@ -231,7 +235,7 @@ ISpell::ISpell(BufferParams const & params, string const & lang)
        child_.reset(li);
        if (li->start() == -1) {
                error_ = _("Could not create an ispell process.\nYou may not have "
-                       " the right languages installed.");     
+                       " the right languages installed.");
                child_.reset(0);
                return;
        }