soltools: remove Package_inc and empty unistd.h nonsense
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
This commit is contained in:
parent
76d098a07b
commit
09373d4583
28 changed files with 39 additions and 64 deletions
|
@ -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 :=
|
||||
|
|
|
@ -110,6 +110,7 @@ OSQLScanner* xxx_pGLOBAL_SQLSCAN = NULL;
|
|||
|
||||
%option noyywrap
|
||||
%option never-interactive
|
||||
%option nounistd
|
||||
%%
|
||||
|
||||
ABS {SQL_NEW_KEYWORD(SQL_TOKEN_ABS); }
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "so_instance.hxx"
|
||||
|
|
|
@ -51,7 +51,6 @@
|
|||
#endif
|
||||
#endif //end of WNT
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
|
|
@ -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,\
|
||||
|
|
|
@ -261,6 +261,7 @@ static void parseLineAndFile(sal_Char* pBuf)
|
|||
|
||||
%option noyywrap
|
||||
%option never-interactive
|
||||
%option nounistd
|
||||
|
||||
%x DOCU
|
||||
%x COMMENT
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -66,6 +66,7 @@ int bText=0;
|
|||
|
||||
%option yylineno
|
||||
%option never-interactive
|
||||
%option nounistd
|
||||
|
||||
%p 24000
|
||||
%e 1200
|
||||
|
|
|
@ -68,6 +68,7 @@ void YYWarning();
|
|||
|
||||
%option yylineno
|
||||
%option never-interactive
|
||||
%option nounistd
|
||||
|
||||
%p 24000
|
||||
%e 1200
|
||||
|
|
|
@ -74,6 +74,7 @@ int bText=0;
|
|||
|
||||
%option yylineno
|
||||
%option never-interactive
|
||||
%option nounistd
|
||||
|
||||
%p 24000
|
||||
%e 1200
|
||||
|
|
|
@ -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)
|
||||
|
|
12
liblangtag/liblangtag-0.5.1-unistd.patch
Normal file
12
liblangtag/liblangtag-0.5.1-unistd.patch
Normal file
|
@ -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"
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,\
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
// SERVER
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -10,7 +10,9 @@
|
|||
#define _SD_IMPRESSREMOTE_COMMUNICATOR_HXX
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -11,7 +11,9 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <osl/socket.hxx>
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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))
|
|
@ -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
|
||||
|
|
|
@ -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: */
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <list>
|
||||
|
||||
|
|
Loading…
Reference in a new issue