mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 06:24:01 +00:00
Solaris build fixes: fallback to _XOPEN_NAME_MAX if defined
This commit is contained in:
parent
a10f729ef9
commit
11bece80a8
1 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,13 @@
|
||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// NAME_MAX is not defined on Solaris and suggests the use of pathconf()
|
||||||
|
// There is no obvious sensible pathconf() for shared memory and _XPG_NAME_MAX
|
||||||
|
// seems a reasonable choice.
|
||||||
|
#if !defined(NAME_MAX) && defined(_XOPEN_NAME_MAX)
|
||||||
|
#define NAME_MAX _XOPEN_NAME_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The set command
|
The set command
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue