Skip to content

Commit

Permalink
Merge pull request #4 from bsdsx/solaris_uintmax_max
Browse files Browse the repository at this point in the history
check UINTMAX_MAX
  • Loading branch information
pullmoll committed Feb 22, 2016
2 parents 9b3d7da + e9c2ef5 commit a62b616
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ AC_CHECK_DECLS([MAX], , , [
#include <sys/param.h>
])

AC_CHECK_DECLS([UINTMAX_MAX], , , [
#include <limits.h>
])

AC_CHECK_FUNCS([dirfd])

AC_CHECK_MEMBERS([DIR.dd_fd, DIR.d_fd],,,
Expand Down
4 changes: 4 additions & 0 deletions fts.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ __RCSID("$NetBSD: fts.c,v 1.48 2015/01/29 15:55:21 manu Exp $");
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif

#if !defined(UINT_MAX) && (HAVE_DECL_UINTMAX_MAX==1)
#define UINT_MAX UINTMAX_MAX
#endif

static FTSENT *fts_alloc(FTS *, const char *, size_t);
static FTSENT *fts_build(FTS *, int);
static void fts_free(FTSENT *);
Expand Down

0 comments on commit a62b616

Please sign in to comment.