mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-18 03:41:16 -03:00
Support building on Solaris 11
Took care of remaining issues preventing fish from building on Solaris. Mainly caused by some assumptions that certain defines are POSIX when they are not (`NAME_MAX`). Moved `NAME_MAX` defines to common.h - for some reason, it was being defined in a cpp file (`env_universal_common.cpp`) even though it is used in multiple source files. Now compiles on Solaris 11 with GNU Make. Still some warnings because fish was written with GNU getopt in mind and the Solaris version doesn't use `const char *` but rather just `char *` for getopt values, but it builds nevertheless. Assuming this closes #3340
This commit is contained in:
@@ -55,13 +55,6 @@
|
||||
#include <bsd/ifaddrs.h>
|
||||
#endif // Haiku
|
||||
|
||||
// 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.
|
||||
#define SET_STR L"SET"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user