summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-05-10 17:42:35 +0200
committerMichael Stahl <mstahl@redhat.com>2013-05-10 17:56:24 +0200
commit09373d45838e4dab514e37dee4a4c8f6218ebda0 (patch)
tree91381d15cb0c7b29072c79a30eee7fd0d8635768
parent76d098a07bb2f901948d39522954dff6b50adae8 (diff)
soltools: remove Package_inc and empty unistd.h nonsense
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
-rw-r--r--RepositoryExternal.mk20
-rw-r--r--connectivity/source/parse/sqlflex.l1
-rw-r--r--extensions/source/nsplugin/source/so_env.hxx3
-rw-r--r--extensions/source/nsplugin/source/so_instance.cxx1
-rw-r--r--extensions/source/nsplugin/source/so_main.cxx1
-rw-r--r--idlc/Executable_idlc.mk1
-rw-r--r--idlc/source/scanner.l1
-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
-rw-r--r--liblangtag/UnpackedTarball_langtag.mk1
-rw-r--r--liblangtag/liblangtag-0.5.1-unistd.patch12
-rw-r--r--nss/ExternalProject_nss.mk4
-rw-r--r--nss/nss-3.13.5-zlib-werror.patch4
-rw-r--r--redland/Library_raptor.mk1
-rw-r--r--sal/qa/osl/process/osl_process.cxx3
-rw-r--r--sd/source/ui/inc/RemoteServer.hxx2
-rw-r--r--sd/source/ui/remotecontrol/Communicator.hxx2
-rw-r--r--sd/source/ui/remotecontrol/DiscoveryService.hxx2
-rw-r--r--soltools/Executable_cpp.mk4
-rw-r--r--soltools/Executable_makedepend.mk4
-rw-r--r--soltools/Module_soltools.mk6
-rw-r--r--soltools/Package_inc.mk11
-rw-r--r--soltools/mkdepend/def.h2
-rw-r--r--soltools/winunistd/unistd.h6
-rw-r--r--stoc/source/implementationregistration/implreg.cxx3
-rw-r--r--svx/source/gengal/gengal.cxx2
28 files changed, 39 insertions, 64 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 2a58722b450d..5dbf31e23c5a 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -137,26 +137,6 @@ endef
endif
-ifeq ($(OS)$(COM),WNTMSC)
-
-define gb_ExternalProject__use_unistd_headers
-$(call gb_ExternalProject_use_package,$(1),soltools_inc)
-
-endef
-
-define gb_LinkTarget__use_unistd_headers
-$(call gb_LinkTarget_use_package,$(1),soltools_inc)
-
-endef
-
-else # ! ($(OS)$(COM),WNTMSC)
-
-gb_ExternalProject__use_unistd_headers :=
-
-gb_LinkTarget__use_unistd_headers :=
-
-endif
-
ifeq ($(SYSTEM_VIGRA),YES)
gb_LinkTarget__use_vigra_headers :=
diff --git a/connectivity/source/parse/sqlflex.l b/connectivity/source/parse/sqlflex.l
index 44484fe760ed..166bbf6e9edb 100644
--- a/connectivity/source/parse/sqlflex.l
+++ b/connectivity/source/parse/sqlflex.l
@@ -110,6 +110,7 @@ OSQLScanner* xxx_pGLOBAL_SQLSCAN = NULL;
%option noyywrap
%option never-interactive
+%option nounistd
%%
ABS {SQL_NEW_KEYWORD(SQL_TOKEN_ABS); }
diff --git a/extensions/source/nsplugin/source/so_env.hxx b/extensions/source/nsplugin/source/so_env.hxx
index d8960e542e0f..461252292a81 100644
--- a/extensions/source/nsplugin/source/so_env.hxx
+++ b/extensions/source/nsplugin/source/so_env.hxx
@@ -33,7 +33,7 @@
#ifdef UNIX
-
+#include <unistd.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -44,7 +44,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
-#include <unistd.h>
#include <string.h>
#define SO_SERVER_PORT 8100
diff --git a/extensions/source/nsplugin/source/so_instance.cxx b/extensions/source/nsplugin/source/so_instance.cxx
index 0045da3f5bad..7de17815ff0a 100644
--- a/extensions/source/nsplugin/source/so_instance.cxx
+++ b/extensions/source/nsplugin/source/so_instance.cxx
@@ -49,7 +49,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <errno.h>
#include "so_instance.hxx"
diff --git a/extensions/source/nsplugin/source/so_main.cxx b/extensions/source/nsplugin/source/so_main.cxx
index 6413f21dde05..ba6ee2cab02f 100644
--- a/extensions/source/nsplugin/source/so_main.cxx
+++ b/extensions/source/nsplugin/source/so_main.cxx
@@ -51,7 +51,6 @@
#endif
#endif //end of WNT
-#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
diff --git a/idlc/Executable_idlc.mk b/idlc/Executable_idlc.mk
index cef8de30a998..2eaa30cd9f01 100644
--- a/idlc/Executable_idlc.mk
+++ b/idlc/Executable_idlc.mk
@@ -17,7 +17,6 @@ $(eval $(call gb_Executable_set_include,idlc,\
$(eval $(call gb_Executable_use_externals,idlc,\
boost_headers \
- unistd_headers \
))
$(eval $(call gb_Executable_use_libraries,idlc,\
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l
index aed48cf08402..ca5119feed6f 100644
--- a/idlc/source/scanner.l
+++ b/idlc/source/scanner.l
@@ -261,6 +261,7 @@ static void parseLineAndFile(sal_Char* pBuf)
%option noyywrap
%option never-interactive
+%option nounistd
%x DOCU
%x COMMENT
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
diff --git a/liblangtag/UnpackedTarball_langtag.mk b/liblangtag/UnpackedTarball_langtag.mk
index 572c5af0dbc3..32f993a15011 100644
--- a/liblangtag/UnpackedTarball_langtag.mk
+++ b/liblangtag/UnpackedTarball_langtag.mk
@@ -22,6 +22,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,langtag,\
liblangtag/liblangtag-0.5.1-redefinition-of-typedef.patch \
liblangtag/liblangtag-0.5.1-undefined-have-sys-param-h.patch \
liblangtag/liblangtag-0.5.1-windows-do-not-prepend-dir-separator.patch \
+ liblangtag/liblangtag-0.5.1-unistd.patch \
))
ifeq ($(OS),WNT)
diff --git a/liblangtag/liblangtag-0.5.1-unistd.patch b/liblangtag/liblangtag-0.5.1-unistd.patch
new file mode 100644
index 000000000000..0aebe0b09cda
--- /dev/null
+++ b/liblangtag/liblangtag-0.5.1-unistd.patch
@@ -0,0 +1,12 @@
+--- UnpackedTarball/langtag/liblangtag/lt-utils.c 2013-05-10 14:36:54.445200000 +0200
++++ UnpackedTarball/langtag/liblangtag/lt-utils.c 2013-05-10 14:38:31.446000000 +0200
+@@ -23,7 +23,9 @@
+ #if HAVE_STRING_H
+ #include <string.h>
+ #endif
++#if HAVE_UNISTD_H
+ #include <unistd.h>
++#endif
+ #include <sys/types.h>
+ #include "lt-messages.h"
+ #include "lt-utils.h"
diff --git a/nss/ExternalProject_nss.mk b/nss/ExternalProject_nss.mk
index c62861aec131..5bd53613f028 100644
--- a/nss/ExternalProject_nss.mk
+++ b/nss/ExternalProject_nss.mk
@@ -9,10 +9,6 @@
$(eval $(call gb_ExternalProject_ExternalProject,nss))
-$(eval $(call gb_ExternalProject_use_externals,nss,\
- unistd_headers \
-))
-
$(eval $(call gb_ExternalProject_register_targets,nss,\
configure \
build \
diff --git a/nss/nss-3.13.5-zlib-werror.patch b/nss/nss-3.13.5-zlib-werror.patch
index 390dd1fdc0d3..c3440c8ed99f 100644
--- a/nss/nss-3.13.5-zlib-werror.patch
+++ b/nss/nss-3.13.5-zlib-werror.patch
@@ -1,10 +1,12 @@
--- misc/nss-3.13.5/mozilla/security/nss/lib/zlib/gzguts.h 2010-08-22 03:07:03.000000000 +0200
+++ misc/build/nss-3.13.5/mozilla/security/nss/lib/zlib/gzguts.h 2012-07-17 08:52:14.821552788 +0200
-@@ -26,6 +26,7 @@
+@@ -26,6 +26,9 @@
# include <limits.h>
#endif
#include <fcntl.h>
++#ifndef _WIN32
+#include <unistd.h>
++#endif
#ifdef NO_DEFLATE /* for compatibility with old definition */
# define NO_GZCOMPRESS
diff --git a/redland/Library_raptor.mk b/redland/Library_raptor.mk
index df666aa422f0..a7f5af57ebfb 100644
--- a/redland/Library_raptor.mk
+++ b/redland/Library_raptor.mk
@@ -26,6 +26,7 @@ $(eval $(call gb_Library_add_defs,raptor2,\
-D_WINDOWS \
-D_USRDLL \
-DWIN32_EXPORTS \
+ -DYY_NO_UNISTD_H \
))
$(eval $(call gb_Library_add_generated_cobjects,raptor2,\
diff --git a/sal/qa/osl/process/osl_process.cxx b/sal/qa/osl/process/osl_process.cxx
index d8245d5760ba..f09567659552 100644
--- a/sal/qa/osl/process/osl_process.cxx
+++ b/sal/qa/osl/process/osl_process.cxx
@@ -32,7 +32,6 @@
#include <osl/file.hxx>
#include <osl/thread.h>
#include <rtl/ustring.hxx>
-#include <unistd.h>
#include <signal.h>
#include <stdio.h>
@@ -43,6 +42,8 @@
#if ( defined WNT ) // Windows
# include <windows.h>
# include <tchar.h>
+#else
+#include <unistd.h>
#endif
#include "rtl/allocator.hxx"
diff --git a/sd/source/ui/inc/RemoteServer.hxx b/sd/source/ui/inc/RemoteServer.hxx
index bc1e7c556576..60c9b18f4d48 100644
--- a/sd/source/ui/inc/RemoteServer.hxx
+++ b/sd/source/ui/inc/RemoteServer.hxx
@@ -12,7 +12,9 @@
// SERVER
#include <stdio.h>
#include <stdlib.h>
+#ifndef _WIN32
#include <unistd.h>
+#endif
#include <sys/types.h>
#include <vector>
diff --git a/sd/source/ui/remotecontrol/Communicator.hxx b/sd/source/ui/remotecontrol/Communicator.hxx
index 7883401eff65..8e1b76c39f73 100644
--- a/sd/source/ui/remotecontrol/Communicator.hxx
+++ b/sd/source/ui/remotecontrol/Communicator.hxx
@@ -10,7 +10,9 @@
#define _SD_IMPRESSREMOTE_COMMUNICATOR_HXX
#include <stdlib.h>
+#ifndef _WIN32
#include <unistd.h>
+#endif
#include <sys/types.h>
#include <vector>
diff --git a/sd/source/ui/remotecontrol/DiscoveryService.hxx b/sd/source/ui/remotecontrol/DiscoveryService.hxx
index eafca4160b6f..b47f04904df4 100644
--- a/sd/source/ui/remotecontrol/DiscoveryService.hxx
+++ b/sd/source/ui/remotecontrol/DiscoveryService.hxx
@@ -11,7 +11,9 @@
#include <stdio.h>
#include <stdlib.h>
+#ifndef _WIN32
#include <unistd.h>
+#endif
#include <sys/types.h>
#include <osl/socket.hxx>
diff --git a/soltools/Executable_cpp.mk b/soltools/Executable_cpp.mk
index f24b0185fd32..4225319ab462 100644
--- a/soltools/Executable_cpp.mk
+++ b/soltools/Executable_cpp.mk
@@ -9,10 +9,6 @@
$(eval $(call gb_Executable_Executable,cpp))
-$(eval $(call gb_Executable_use_externals,cpp,\
- unistd_headers \
-))
-
$(eval $(call gb_Executable_add_cobjects,cpp,\
soltools/cpp/_cpp \
soltools/cpp/_eval \
diff --git a/soltools/Executable_makedepend.mk b/soltools/Executable_makedepend.mk
index e924a8d0fec6..ff61f40c4cc9 100644
--- a/soltools/Executable_makedepend.mk
+++ b/soltools/Executable_makedepend.mk
@@ -19,10 +19,6 @@ $(eval $(call gb_Executable_add_defs,makedepend,\
-DHW_THREADS \
))
-$(eval $(call gb_Executable_use_externals,makedepend,\
- unistd_headers \
-))
-
ifeq ($(COM),MSC)
$(eval $(call gb_Executable_add_defs,makedepend,\
-wd4100 \
diff --git a/soltools/Module_soltools.mk b/soltools/Module_soltools.mk
index 77396fdce844..df617450a7d6 100644
--- a/soltools/Module_soltools.mk
+++ b/soltools/Module_soltools.mk
@@ -14,10 +14,4 @@ $(eval $(call gb_Module_add_targets_for_build,soltools,\
Executable_makedepend \
))
-ifeq ($(OS)$(COM),WNTMSC)
-$(eval $(call gb_Module_add_targets,soltools,\
- Package_inc \
-))
-endif # WNTMSC
-
# vim:set noet sw=4 ts=4:
diff --git a/soltools/Package_inc.mk b/soltools/Package_inc.mk
deleted file mode 100644
index 863945fe63f6..000000000000
--- a/soltools/Package_inc.mk
+++ /dev/null
@@ -1,11 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-$(eval $(call gb_Package_Package,soltools_inc,$(SRCDIR)/soltools/winunistd))
-$(eval $(call gb_Package_add_file,soltools_inc,inc/unistd.h,unistd.h))
diff --git a/soltools/mkdepend/def.h b/soltools/mkdepend/def.h
index 1c0e91a811c9..dcb3c1ff923d 100644
--- a/soltools/mkdepend/def.h
+++ b/soltools/mkdepend/def.h
@@ -40,7 +40,9 @@ in this Software without prior written authorization from the X Consortium.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifndef _MSC_VER
#include <unistd.h>
+#endif
#include <ctype.h>
#ifndef X_NOT_POSIX
diff --git a/soltools/winunistd/unistd.h b/soltools/winunistd/unistd.h
deleted file mode 100644
index 72c253e0af41..000000000000
--- a/soltools/winunistd/unistd.h
+++ /dev/null
@@ -1,6 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/* Dummy unistd.h for the wntmsci3 environment. Required because flex
- * generates a lexical scanner which includes <unistd.h>
- */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx
index 71c1409fe8ec..929c4d709854 100644
--- a/stoc/source/implementationregistration/implreg.cxx
+++ b/stoc/source/implementationregistration/implreg.cxx
@@ -21,7 +21,6 @@
#include <string.h>
#include <list>
-#include <unistd.h>
#include <cppuhelper/queryinterface.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/weak.hxx>
@@ -49,6 +48,8 @@
#if defined(SAL_W32)
#include <io.h>
+#else
+#include <unistd.h>
#endif
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx
index b4ace29d1277..204bbed77c1c 100644
--- a/svx/source/gengal/gengal.cxx
+++ b/svx/source/gengal/gengal.cxx
@@ -8,7 +8,9 @@
*/
#include <stdio.h>
+#ifndef _WIN32
#include <unistd.h>
+#endif
#include <list>