mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 13:26:37 +00:00
define SED only if not already defined
This allows packagers to set a custom path for sed (gsed may be simply called `gsed' or `gnu-sed' or ...)
This commit is contained in:
parent
deead97e23
commit
fb3d3ab0ef
|
@ -202,12 +202,14 @@
|
|||
#define CTX_MAX 8
|
||||
#endif
|
||||
|
||||
#ifndef SED
|
||||
/* BSDs or Solaris or SunOS */
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(sun) || defined(__sun)
|
||||
#define SED "gsed"
|
||||
#else
|
||||
#define SED "sed"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Large selection threshold */
|
||||
#ifndef LARGESEL
|
||||
|
|
Loading…
Reference in a new issue