Hi, On 03.09.2011, at 11:54, Rémi Denis-Courmont wrote: > + DIR *dir = opendir (path); > + if (dir != NULL) > + { > + close (fd); > + return dir; > + } Sorry for bothering, but "close()" isn't defined on the Mac either.. Best regards, Felix