diff options
author | cls%seawood.org <devnull@localhost> | 1999-09-12 14:25:16 +0000 |
---|---|---|
committer | cls%seawood.org <devnull@localhost> | 1999-09-12 14:25:16 +0000 |
commit | b61c560336fe42d48738d62087101860c56e18a6 (patch) | |
tree | a73f25c5488e22bcc330347182da087a70924db2 | |
parent | dc374ede79aab4a86ecce185a5ec9bec607b69fa (diff) | |
download | nss-hg-b61c560336fe42d48738d62087101860c56e18a6.tar.gz |
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.
-rw-r--r-- | dbm/src/Makefile.in | 3 | ||||
-rw-r--r-- | dbm/tests/Makefile.in | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/dbm/src/Makefile.in b/dbm/src/Makefile.in index 37cf3907e..64f72ff63 100644 --- a/dbm/src/Makefile.in +++ b/dbm/src/Makefile.in @@ -50,6 +50,9 @@ override NO_STATIC_LIB= 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 diff --git a/dbm/tests/Makefile.in b/dbm/tests/Makefile.in index 2c505fd45..0a58936f0 100644 --- a/dbm/tests/Makefile.in +++ b/dbm/tests/Makefile.in @@ -31,3 +31,6 @@ LIBS = -lmozdbm_s include $(topsrcdir)/config/rules.mk +ifeq ($(OS_ARCH), Linux) +DEFINES += -D_BSD_SOURCE +endif |