From f1fbc6b8f6a074d1a4a8e50630df901fbc8075f8 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 Oct 2015 16:28:23 +0000 Subject: template/ruby-runner.c.in: POSIX for setenv git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- Makefile.in | 2 +- template/ruby-runner.c.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 817976999a..78b8d16dc0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -256,7 +256,7 @@ ruby-runner.c: template/ruby-runner.c.in @./config.status --file=$@:$(srcdir)/template/$(@F).in ruby-runner$(EXEEXT): ruby-runner.c - $(Q) $(PURIFY) $(CC) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ ruby-runner.c + $(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ ruby-runner.c $(RBCONFIG): $($(CROSS_COMPILING:no=)PREP) diff --git a/template/ruby-runner.c.in b/template/ruby-runner.c.in index 56386a8d6f..95cb1e3ef1 100644 --- a/template/ruby-runner.c.in +++ b/template/ruby-runner.c.in @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 200809L #include #include #include -- cgit v1.2.3