billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=02f41733879ffb650e4dd6e96ea49c5acbe10296

commit 02f41733879ffb650e4dd6e96ea49c5acbe10296
Author: Boris Faure <[email protected]>
Date:   Thu Nov 7 20:43:27 2019 +0100

    build: detect whether there is strchrnul
    
    This should help compiling on macosx
---
 meson.build          | 4 ++++
 src/bin/termptyesc.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 3932ecc..dbac9a7 100644
--- a/meson.build
+++ b/meson.build
@@ -78,6 +78,10 @@ if cc.has_function('mkstemps')
   config_data.set('HAVE_MKSTEMPS', 1)
 endif
 
+if cc.has_function('strchrnul')
+  config_data.set('HAVE_STRCHRNUL', 1)
+endif
+
 url_head_code = '''#include <Ecore_Con.h>
 int main(void) { ecore_con_url_head(NULL); return 0; }
 '''
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 256c819..25da608 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -3418,7 +3418,7 @@ _eina_unicode_to_hex(Eina_Unicode u)
    return -1;
 }
 
-#if defined(__OpenBSD__)
+#if !defined(HAVE_STRCHRNUL)
 char *
 strchrnul(const char *s, int c)
 {

-- 


Reply via email to