|
From: Miro K. <mir...@gm...> - 2015-02-06 18:08:46
|
>
> The definition of DIR is intentionally opaque, because applications
>
Ah, now I see what it's meant by that 'opaque', OK.
Can you tell why you need to access the members of DIR?
>
Well, it's not my project, it's someone else's. It's used like this:
#define DIRHANDLE dirp->dd_handle
DIR *dirp;
if ((dirp = opendir(dirname)) == NULL)
return(-1);
if (fstat(DIRHANDLE, &stb) < 0)
return(-1);
Not saying it's a great practice, though. So I'd like to make it compilable
somehow, it works for other Unix flavors, incl. Cygwin.
|