diff options
-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> |