mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 12:40:26 +08:00
Solaris build fixes: fallback to _XOPEN_NAME_MAX if defined
This commit is contained in:
parent
a10f729ef9
commit
11bece80a8
@ -36,6 +36,13 @@
|
||||
#include <notify.h>
|
||||
#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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user