From e3e4159e114ff40692f74d74af982d7f27a9dc25 Mon Sep 17 00:00:00 2001 From: Alexis Praga Date: Wed, 27 Oct 2021 11:47:05 +0200 Subject: [PATCH] BSDs and Solaris: use gsed instead of sed --- src/nnn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 6976b21a..40e258f4 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -202,7 +202,8 @@ #define CTX_MAX 8 #endif -#ifdef __APPLE__ +/* 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"