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:
cls%seawood.org 1999-09-12 14:25:28 +00:00
Родитель 4bcb879c19
Коммит 1a2e16af42
15 изменённых файлов: 43 добавлений и 3 удалений

Просмотреть файл

@ -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 :=