зеркало из https://github.com/mozilla/gecko-dev.git
Remove global _POSIX_SOURCE & _SVID_SOURCE defines for linux.
Bug #202510 r=darin
This commit is contained in:
Родитель
a692705849
Коммит
f7bf89f618
|
@ -74,10 +74,6 @@ NO_INSTALL=1
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
ifeq ($(OS_CONFIG),SunOS4.1)
|
||||
NSPR_CFLAGS += -I$(srcdir)/../nsprpub/pr/include/md
|
||||
endif
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -947,8 +947,6 @@ case "$target" in
|
|||
;;
|
||||
|
||||
*-*linux*)
|
||||
AC_DEFINE(_POSIX_SOURCE)
|
||||
AC_DEFINE(_SVID_SOURCE)
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
|
||||
MOZ_DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb,
|
||||
# and that combo is not yet good at
|
||||
|
|
|
@ -68,9 +68,6 @@ FORCE_USE_PIC = 1
|
|||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
DEFINES += -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG)
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH),AIX)
|
||||
OS_LIBS += -lc_r
|
||||
|
|
|
@ -41,6 +41,3 @@ LIBS = $(EXTRA_DSO_LIBS)
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
|
|
@ -159,9 +159,6 @@ EXTRA_DSO_LDOPTS += $(MOZ_GTK_LDFLAGS) $(MOZ_XFT_LIBS) $(MOZ_GTK2_LIBS)
|
|||
CXXFLAGS += $(MOZ_GTK_CFLAGS) $(MOZ_GTK2_CFLAGS)
|
||||
CFLAGS += $(MOZ_GTK_CFLAGS) $(MOZ_GTK2_CFLAGS)
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
ifeq ($(OS_ARCH), SunOS)
|
||||
ifndef GNU_CC
|
||||
# When using Sun's WorkShop compiler, including
|
||||
|
|
|
@ -90,9 +90,6 @@ ifdef MOZ_ENABLE_FREETYPE2
|
|||
INCLUDES += $(FT2_CFLAGS)
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
CFLAGS += $(TK_CFLAGS)
|
||||
CXXFLAGS += $(TK_CFLAGS)
|
||||
|
||||
|
|
|
@ -110,10 +110,6 @@ EXTRA_DSO_LDOPTS += \
|
|||
|
||||
DEFINES += -DUSE_MOZILLA_TYPES
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_POSTSCRIPT
|
||||
DEFINES += -DUSE_POSTSCRIPT
|
||||
endif
|
||||
|
|
|
@ -94,9 +94,6 @@ GARBAGE += $(X11SHARED_LCPPSRCS) $(XLIB_LCPPSRCS) $(wildcard *.$(OBJ_SUFFIX))
|
|||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
DEFINES += -DUSE_MOZILLA_TYPES -DUSE_XPRINT
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
CFLAGS += $(TK_CFLAGS)
|
||||
CXXFLAGS += $(TK_CFLAGS)
|
||||
|
||||
|
|
|
@ -57,9 +57,6 @@ LIBS = \
|
|||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
DEFINES += -DJS_THREADSAFE
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
#
|
||||
# Line editing support. If your OS supplies the readline library, define
|
||||
|
|
|
@ -132,10 +132,6 @@ FORCE_STATIC_LIB = 1
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
ifdef MOZ_UNICODE
|
||||
DEFINES += -DMOZ_UNICODE
|
||||
|
|
|
@ -60,7 +60,3 @@ FORCE_STATIC_LIB = 1
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
|
|
|
@ -150,7 +150,4 @@ FORCE_STATIC_LIB = 1
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
|
|
|
@ -60,10 +60,6 @@ EXPORTS = $(MODULES_LIBJAR_LEXPORTS)
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
DEFINES += -DZLIB_DLL=1
|
||||
endif
|
||||
|
|
|
@ -62,10 +62,6 @@ SRCS_IN_OBJDIR = 1
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
DEFINES += -DSTANDALONE
|
||||
|
||||
LOCAL_INCLUDES = -I$(srcdir)/..
|
||||
|
|
|
@ -93,8 +93,3 @@ FORCE_STATIC_LIB = 1
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
# For fruncate
|
||||
ifeq ($(OS_ARCH),Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
|
|
|
@ -62,7 +62,3 @@ include $(topsrcdir)/config/config.mk
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
# For fruncate
|
||||
ifeq ($(OS_ARCH),Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
|
|
@ -47,6 +47,3 @@ FORCE_STATIC_LIB = 1
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
|
|
@ -49,7 +49,3 @@ LOCAL_INCLUDES = \
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
|
|
|
@ -93,6 +93,3 @@ LOCAL_INCLUDES = \
|
|||
-I$(srcdir)/../src \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE -D_POSIX_C_SOURCE=199506L
|
||||
endif
|
||||
|
|
|
@ -59,7 +59,3 @@ FORCE_STATIC_LIB = 1
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE -D_POSIX_C_SOURCE=199506L
|
||||
endif
|
||||
|
||||
|
|
|
@ -97,9 +97,6 @@ CFLAGS += $(MOZ_GTK_CFLAGS)
|
|||
|
||||
DEFINES += -D_IMPL_NS_WIDGET -DUSE_XIM
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
ifeq ($(OS_ARCH), SunOS)
|
||||
ifndef GNU_CC
|
||||
# When using Sun's WorkShop compiler, including
|
||||
|
|
|
@ -45,10 +45,6 @@ CFLAGS += $(MOZ_GTK_CFLAGS)
|
|||
|
||||
DEFINES += -D_IMPL_NS_WIDGET -DUSE_XIM
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH), OpenVMS)
|
||||
DEFINES += -DGENERIC_MOTIF_REDEFINES
|
||||
endif
|
||||
|
|
|
@ -58,10 +58,6 @@ endif
|
|||
|
||||
DEFINES += -D_IMPL_NS_WIDGET -DUSE_XIM
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH), OpenVMS)
|
||||
DEFINES += -DGENERIC_MOTIF_REDEFINES
|
||||
endif
|
||||
|
|
|
@ -84,10 +84,6 @@ CXXFLAGS += $(MOZ_XLIB_CFLAGS)
|
|||
|
||||
DEFINES += -D_IMPL_NS_WIDGET
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
LOCAL_INCLUDES = \
|
||||
-I$(srcdir)/../xpwidgets \
|
||||
-I$(srcdir) \
|
||||
|
|
|
@ -46,10 +46,6 @@ CFLAGS += $(MOZ_XLIB_CFLAGS)
|
|||
|
||||
DEFINES += -D_IMPL_NS_WIDGET -DUSE_XIM
|
||||
|
||||
# ifeq ($(OS_ARCH), Linux)
|
||||
# DEFINES += -D_BSD_SOURCE
|
||||
# endif
|
||||
|
||||
INCLUDES += \
|
||||
-I$(srcdir) \
|
||||
$(NULL)
|
||||
|
|
|
@ -59,10 +59,6 @@ LIBS = \
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH), OpenVMS)
|
||||
DEFINES += -DGENERIC_MOTIF_REDEFINES
|
||||
endif
|
||||
|
|
|
@ -115,6 +115,3 @@ include $(topsrcdir)/config/rules.mk
|
|||
|
||||
DEFINES += -D_IMPL_NS_COM
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
|
|
@ -155,7 +155,3 @@ include $(topsrcdir)/config/rules.mk
|
|||
|
||||
DEFINES += -D_IMPL_NS_COM
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
|
|
|
@ -107,7 +107,3 @@ EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME, imagehlp)
|
|||
endif
|
||||
endif # WINNT
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
|
|
|
@ -107,7 +107,3 @@ EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME, imagehlp)
|
|||
endif
|
||||
endif # WINNT
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
|
|
|
@ -63,10 +63,6 @@ LIBS = \
|
|||
LOCAL_INCLUDES += -I$(srcdir)/../../../stub
|
||||
LOCAL_INCLUDES += -I$(srcdir)/../../libxpnet/src
|
||||
|
||||
ifeq ($(OS_ARCH), Linux)
|
||||
DEFINES += -D_BSD_SOURCE
|
||||
endif
|
||||
|
||||
EXTRA_DEPS = \
|
||||
../../libxpnet/src/libxpnet_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/libjar50_s.$(LIB_SUFFIX)
|
||||
|
|
Загрузка…
Ссылка в новой задаче