diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-03 16:28:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-03 16:28:23 +0000 |
commit | f1fbc6b8f6a074d1a4a8e50630df901fbc8075f8 (patch) | |
tree | 3b42153920ac53df629d5859da43463111134f63 | |
parent | 69f0a1347e3fec66fe236734f59635c8bc1c54f3 (diff) | |
download | ruby-f1fbc6b8f6a074d1a4a8e50630df901fbc8075f8.tar.gz |
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
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | template/ruby-runner.c.in | 1 |
2 files changed, 2 insertions, 1 deletions
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 <stdlib.h> #include <string.h> #include <unistd.h> |