Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
32b1ff1bea
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dtool/src/build/Makefile.o.rules

+ 4 - 1
dtool/src/build/Makefile.o.rules

@@ -71,9 +71,12 @@ else
 CFILES := $(CFILES) $(LCFILES)
 endif
 
+# We must strip out the reference to unistd.h that flex so annoyingly
+# puts in its generated code.
 $(LCFILES) : %.$(LEXTENSION) : %.lxx
 	$(LEX) $(LFLAGS) $<
-	mv lex.yy.c $@
+	sed '/#include <unistd.h>/d' lex.yy.c > $@
+	rm lex.yy.c
 
 clean:: 
 	rm -f $(LCFILES)