Skip to content

Commit

Permalink
Merge pull request #1266 from hadfl/illumos
Browse files Browse the repository at this point in the history
illumos defines _MAX macros in limits.h
  • Loading branch information
oetiker authored Oct 15, 2024
2 parents 39e0149 + 4cb775a commit 5041750
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Bugfixes
--------
* Fix MacOS Build error (no SOCK_CLOEXEC on mac) @ensc fixes oetiker#1261
* Fix build on 32bits platforms (like armhf) when time_t is 64bits, fixes #1264
* Fix compilation on illumos @hadfl

Features
--------
Expand Down
6 changes: 6 additions & 0 deletions src/rrd_config_bottom.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif

/* illumos defines *_MAX macros in limits.h */
#ifdef __illumos__
# include <limits.h>
#endif

#ifndef MAXPATH
# ifdef PATH_MAX
# define MAXPATH PATH_MAX
Expand Down

0 comments on commit 5041750

Please sign in to comment.