summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/export.hxx3
-rw-r--r--l10ntools/source/cfglex.l1
-rw-r--r--l10ntools/source/srclex.l1
-rw-r--r--l10ntools/source/xrmlex.l1
4 files changed, 5 insertions, 1 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index d23cc6f29e5e..595c0273fb5f 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -36,9 +36,10 @@
#include <queue>
#include <string>
-#include <unistd.h>
#ifdef WNT
#include <direct.h>
+#else
+#include <unistd.h>
#endif
#define NO_TRANSLATE_ISO "x-no-translate"
diff --git a/l10ntools/source/cfglex.l b/l10ntools/source/cfglex.l
index 0ecb31481aa6..a5c698881bfe 100644
--- a/l10ntools/source/cfglex.l
+++ b/l10ntools/source/cfglex.l
@@ -66,6 +66,7 @@ int bText=0;
%option yylineno
%option never-interactive
+%option nounistd
%p 24000
%e 1200
diff --git a/l10ntools/source/srclex.l b/l10ntools/source/srclex.l
index 2826dce5f4ad..0f2195539057 100644
--- a/l10ntools/source/srclex.l
+++ b/l10ntools/source/srclex.l
@@ -68,6 +68,7 @@ void YYWarning();
%option yylineno
%option never-interactive
+%option nounistd
%p 24000
%e 1200
diff --git a/l10ntools/source/xrmlex.l b/l10ntools/source/xrmlex.l
index a2b5c0c3cc66..7f28d3f68a7c 100644
--- a/l10ntools/source/xrmlex.l
+++ b/l10ntools/source/xrmlex.l
@@ -74,6 +74,7 @@ int bText=0;
%option yylineno
%option never-interactive
+%option nounistd
%p 24000
%e 1200