зеркало из https://github.com/mozilla/gecko-dev.git
Add -D_POSIX_SOURCE to DEFS to get rid of those useless 'index shadow' warnings. Add either -D_BSD_SOURCE or -D_XOPEN_SOURCE=500 to whichever Makefile.ins need it to accommodate for Posix' strictness. Add check for getopt.h for nsinstall.c.
This commit is contained in:
Родитель
3d00d0c683
Коммит
adf94e4618
|
@ -30,6 +30,9 @@ CSRCS = nsinstall.c pathsub.c
|
||||||
PLSRCS = nfspwd.pl revdepth.pl
|
PLSRCS = nfspwd.pl revdepth.pl
|
||||||
|
|
||||||
TARGETS = $(PROGRAM) $(PLSRCS:.pl=)
|
TARGETS = $(PROGRAM) $(PLSRCS:.pl=)
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
# Generate the build number on the fly.
|
# Generate the build number on the fly.
|
||||||
ifneq ($(origin BUILD_OFFICIAL)_$(origin MOZILLA_OFFICIAL),undefined_undefined)
|
ifneq ($(origin BUILD_OFFICIAL)_$(origin MOZILLA_OFFICIAL),undefined_undefined)
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "pathsub.h"
|
#include "pathsub.h"
|
||||||
|
|
||||||
#ifdef NEED_GETOPT_H
|
#ifdef HAVE_GETOPT_H
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -620,6 +620,7 @@ case "$target" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-*linux*)
|
*-*linux*)
|
||||||
|
AC_DEFINE(_POSIX_SOURCE)
|
||||||
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
|
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
|
||||||
|
|
||||||
case "${host_cpu}" in
|
case "${host_cpu}" in
|
||||||
|
@ -1527,7 +1528,7 @@ fi
|
||||||
|
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
AC_CHECK_HEADERS(sys/byteorder.h compat.h)
|
AC_CHECK_HEADERS(sys/byteorder.h compat.h getopt.h)
|
||||||
AC_CHECK_HEADERS(sys/bittypes.h memory.h unistd.h sys/filio.h)
|
AC_CHECK_HEADERS(sys/bittypes.h memory.h unistd.h sys/filio.h)
|
||||||
AC_CHECK_HEADERS(sys/ipc.h shm.h sys/shm.h X11/extensions/XShm.h)
|
AC_CHECK_HEADERS(sys/ipc.h shm.h sys/shm.h X11/extensions/XShm.h)
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,9 @@ override NO_STATIC_LIB=
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
DEFINES += -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG)
|
DEFINES += -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG)
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(OS_ARCH),AIX)
|
ifeq ($(OS_ARCH),AIX)
|
||||||
OS_LIBS += -lc_r
|
OS_LIBS += -lc_r
|
||||||
|
|
|
@ -31,3 +31,6 @@ LIBS = -lmozdbm_s
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
|
|
|
@ -55,6 +55,9 @@ CFLAGS += $(TK_CFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEFINES += -D_IMPL_NS_GFXNONXP
|
DEFINES += -D_IMPL_NS_GFXNONXP
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
INCLUDES += \
|
INCLUDES += \
|
||||||
-I$(srcdir)/. \
|
-I$(srcdir)/. \
|
||||||
|
|
|
@ -57,6 +57,9 @@ EXTRA_DSO_LDOPTS = \
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
DEFINES += -D_IMPL_NS_GFXONXP
|
DEFINES += -D_IMPL_NS_GFXONXP
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
CFLAGS += $(TK_CFLAGS)
|
CFLAGS += $(TK_CFLAGS)
|
||||||
CXXFLAGS += $(TK_CFLAGS)
|
CXXFLAGS += $(TK_CFLAGS)
|
||||||
|
|
||||||
|
|
|
@ -36,4 +36,7 @@ LIBS = \
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
DEFINES += -DJS_THREADSAFE
|
DEFINES += -DJS_THREADSAFE
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
|
@ -104,3 +104,6 @@ EXTRA_DSO_LDOPTS = \
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
|
|
|
@ -54,3 +54,6 @@ override NO_SHARED_LIB=1
|
||||||
override NO_STATIC_LIB=
|
override NO_STATIC_LIB=
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_XOPEN_SOURCE=500
|
||||||
|
endif
|
||||||
|
|
|
@ -34,4 +34,6 @@ CPPSRCS = \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
|
|
|
@ -35,6 +35,9 @@ override NO_STATIC_LIB=
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
INCLUDES += -I$(srcdir)/../..
|
INCLUDES += -I$(srcdir)/../..
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_XOPEN_SOURCE=500
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef MOZ_MONOLITHIC_TOOLKIT
|
ifndef MOZ_MONOLITHIC_TOOLKIT
|
||||||
CXXFLAGS += $(MOZ_GTK_CFLAGS)
|
CXXFLAGS += $(MOZ_GTK_CFLAGS)
|
||||||
|
|
|
@ -82,6 +82,9 @@ CXXFLAGS += $(TK_CFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEFINES += -D_IMPL_NS_WIDGET -DUSE_XIM
|
DEFINES += -D_IMPL_NS_WIDGET -DUSE_XIM
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
INCLUDES += \
|
INCLUDES += \
|
||||||
-I$(srcdir)/../xpwidgets \
|
-I$(srcdir)/../xpwidgets \
|
||||||
|
|
|
@ -65,6 +65,9 @@ EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||||
|
|
||||||
DEFINES += -D_IMPL_NS_COM
|
DEFINES += -D_IMPL_NS_COM
|
||||||
|
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
REQUIRES = xpcom
|
REQUIRES = xpcom
|
||||||
|
|
||||||
MKSHLIB :=
|
MKSHLIB :=
|
||||||
|
|
|
@ -70,6 +70,10 @@ EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||||
|
|
||||||
DEFINES += -D_IMPL_NS_COM -D_IMPL_NS_BASE
|
DEFINES += -D_IMPL_NS_COM -D_IMPL_NS_BASE
|
||||||
|
|
||||||
|
ifeq ($(OS_ARCH), Linux)
|
||||||
|
DEFINES += -D_BSD_SOURCE
|
||||||
|
endif
|
||||||
|
|
||||||
REQUIRES = xpcom uconv unicharutil
|
REQUIRES = xpcom uconv unicharutil
|
||||||
|
|
||||||
MKSHLIB :=
|
MKSHLIB :=
|
||||||
|
|
Загрузка…
Ссылка в новой задаче