<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/af71bf8570e8169ce223b951322888282e3dc02d">https://github.com/macports/macports-base/commit/af71bf8570e8169ce223b951322888282e3dc02d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new af71bf8 darwintrace: Avoid dirent.h to fix compile error
</span>af71bf8 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit af71bf8570e8169ce223b951322888282e3dc02d
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Wed Jul 12 03:01:44 2017 +0200
<span style='display:block; white-space:pre;color:#404040;'> darwintrace: Avoid dirent.h to fix compile error
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Compilation failed on base-10.6_x86_64 with:
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Undefined symbols for architecture x86_64:
</span><span style='display:block; white-space:pre;color:#404040;'> "_getdirentries_is_not_available_when_64_bit_inodes_are_in_effect", referenced from:
</span><span style='display:block; white-space:pre;color:#404040;'> __dt_getdirentries in readdir.o
</span><span style='display:block; white-space:pre;color:#404040;'> __interpose_getdirentries in readdir.o
</span><span style='display:block; white-space:pre;color:#404040;'> ld: symbol(s) not found for architecture x86_64
</span>---
src/darwintracelib1.0/readdir.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/darwintracelib1.0/readdir.c b/src/darwintracelib1.0/readdir.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 89ed05c..b58b83a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/darwintracelib1.0/readdir.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/darwintracelib1.0/readdir.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,7 +36,6 @@
</span> #include "darwintrace.h"
#include <errno.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#include <dirent.h>
</span> #include <sys/dirent.h>
#include <sys/param.h>
#include <unistd.h>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -120,6 +119,9 @@ struct dirent32 {
</span> };
#pragma pack()
<span style='display:block; white-space:pre;background:#e0ffe0;'>+// do not use dirent.h, as it applies a define to a non-existing symbol
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+int getdirentries(int fd, char *buf, int nbytes, long *basep);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> static int _dt_getdirentries(int fd, char *buf, int nbytes, long *basep) {
__darwintrace_setup();
</pre><pre style='margin:0'>
</pre>