Skip to content

Commit

Permalink
Solaris 8 x86 uses ->d_fd not ->dd_fd or dirfd()
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulder authored and nicowilliams committed Sep 25, 2017
1 parent d6979fc commit 2548b3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cf/roken-frag.m4
Expand Up @@ -439,6 +439,10 @@ AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
#include <dirent.h>
#endif])
AC_HAVE_STRUCT_FIELD(DIR, d_fd, [#include <sys/types.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif])
AC_BROKEN2(inet_aton,
[#ifdef HAVE_SYS_TYPES_H
Expand Down
4 changes: 3 additions & 1 deletion lib/roken/roken.h.in
Expand Up @@ -802,9 +802,11 @@ int rk_flock(int fd, int operation);
#ifndef HAVE_DIRFD
#ifdef HAVE_DIR_DD_FD
#define dirfd(x) ((x)->dd_fd)
#elif defined(HAVE_DIR_D_FD)
#define dirfd(x) ((x)->d_fd)
#else
#ifndef _WIN32 /* Windows code never calls dirfd */
#error Missing dirfd() and ->dd_fd
#error Missing dirfd() and ->dd_fd and ->d_fd
#endif
#endif
#endif
Expand Down

0 comments on commit 2548b3b

Please sign in to comment.