From c10b783521cf312a29d78aef103b548a3d20e5e0 Mon Sep 17 00:00:00 2001 From: Jonathan Buchanan Date: Tue, 18 Jan 2022 09:15:54 -0500 Subject: use 'pipe' instead of 'eventfd' on non-Linux systems --- src/include/taler_util.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include/taler_util.h') diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 8d7f5f754..26440cb1d 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -435,4 +435,18 @@ const char * TALER_yna_to_string (enum TALER_EXCHANGE_YesNoAll yna); +#ifdef __APPLE__ +/** + * Returns the first occurence of `c` in `s`, or returns the null-byte + * terminating the string if it does not occur. + * + * @param s the string to search in + * @param c the character to search for + * @return char* the first occurence of `c` in `s` + */ +char * strchrnul (const char *s, int c); + +#endif + + #endif -- cgit v1.2.3