diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2022-01-18 09:15:54 -0500 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2022-01-18 09:15:54 -0500 |
commit | c10b783521cf312a29d78aef103b548a3d20e5e0 (patch) | |
tree | 6e44fe6468a306bb7280a19e639e58478443cfa6 /src/include | |
parent | 766a291151e18ff08cfbf7bee0a322588e846cce (diff) | |
download | exchange-c10b783521cf312a29d78aef103b548a3d20e5e0.tar.xz |
use 'pipe' instead of 'eventfd' on non-Linux systems
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_util.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 |