aboutsummaryrefslogtreecommitdiff
path: root/lang/pypy3/files/patch-rpython_rlib_rvmprof_src_shared_machine.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/pypy3/files/patch-rpython_rlib_rvmprof_src_shared_machine.c')
-rw-r--r--lang/pypy3/files/patch-rpython_rlib_rvmprof_src_shared_machine.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/lang/pypy3/files/patch-rpython_rlib_rvmprof_src_shared_machine.c b/lang/pypy3/files/patch-rpython_rlib_rvmprof_src_shared_machine.c
index b4e9cbbbeeea..8d1aea36eeb3 100644
--- a/lang/pypy3/files/patch-rpython_rlib_rvmprof_src_shared_machine.c
+++ b/lang/pypy3/files/patch-rpython_rlib_rvmprof_src_shared_machine.c
@@ -1,20 +1,11 @@
---- rpython/rlib/rvmprof/src/shared/machine.c.orig 2017-06-05 20:40:44 UTC
+--- rpython/rlib/rvmprof/src/shared/machine.c.orig 2017-10-03 10:53:54 UTC
+++ rpython/rlib/rvmprof/src/shared/machine.c
-@@ -28,6 +28,8 @@ const char * vmp_machine_os_name(void)
- #endif
+@@ -28,7 +28,7 @@ const char * vmp_machine_os_name(void)
#elif __linux__
return "linux";
-+#elif __FreeBSD__
+ #elif __FreeBSD__
+- return "freebsd"
+ return "freebsd";
#else
#error "Unknown compiler"
#endif
-@@ -39,7 +41,7 @@ long vmp_fd_to_path(int fd, char * buffe
- char proffs[24];
- (void)snprintf(proffs, 24, "/proc/self/fd/%d", fd);
- return readlink(proffs, buffer, buffer_len);
--#elif defined(VMPROF_UNIX)
-+#elif defined(VMPROF_UNIX) && !defined(__FreeBSD__)
- fcntl(fd, F_GETPATH, buffer);
- return strlen(buffer);
- #endif