[pypy-commit] pypy default: string.h needs to be included for strlen to be found.

ltratt pypy.commits at gmail.com
Sun May 14 21:21:16 EDT 2017


Author: Laurence Tratt <laurie at tratt.net>
Branch: 
Changeset: r91292:42c6ee223963
Date: 2017-05-14 19:25 +0800
http://bitbucket.org/pypy/pypy/changeset/42c6ee223963/

Log:	string.h needs to be included for strlen to be found.

diff --git a/rpython/rlib/rvmprof/src/shared/machine.c b/rpython/rlib/rvmprof/src/shared/machine.c
--- a/rpython/rlib/rvmprof/src/shared/machine.c
+++ b/rpython/rlib/rvmprof/src/shared/machine.c
@@ -4,6 +4,7 @@
 #include <stdio.h>
 
 #ifdef VMPROF_UNIX
+#include <string.h>
 #include <unistd.h>
 #include <fcntl.h>
 #endif


More information about the pypy-commit mailing list