From bd56324bfc31bfcbc20452ee0123070f4bf7a3e3 Mon Sep 17 00:00:00 2001 From: "seawood%netscape.com" Date: Sat, 3 Nov 2001 06:28:49 +0000 Subject: [PATCH] Define _BSD_SOURCE for Linux so that linuxppc's libc can find ftruncate. --- netwerk/base/src/Makefile.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netwerk/base/src/Makefile.in b/netwerk/base/src/Makefile.in index 644239b83a1..1594553e3c3 100644 --- a/netwerk/base/src/Makefile.in +++ b/netwerk/base/src/Makefile.in @@ -82,6 +82,11 @@ FORCE_STATIC_LIB = 1 include $(topsrcdir)/config/rules.mk +# For fruncate +ifeq ($(OS_ARCH),Linux) +DEFINES += -D_BSD_SOURCE +endif + install:: $(INSTALL) $(JSFILES) $(DIST)/bin/components