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/util/util.c | |
parent | 766a291151e18ff08cfbf7bee0a322588e846cce (diff) | |
download | exchange-c10b783521cf312a29d78aef103b548a3d20e5e0.tar.xz |
use 'pipe' instead of 'eventfd' on non-Linux systems
Diffstat (limited to 'src/util/util.c')
-rw-r--r-- | src/util/util.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/util/util.c b/src/util/util.c index 274dad3cd..2ff295b0b 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -46,4 +46,21 @@ TALER_b2s (const void *buf, } +#ifdef __APPLE__ +char * +strchrnul (const char *s, + int c) +{ + char *value; + value = strchr (s, + c); + if (NULL == value) + value = &s[strlen (s)]; + return value; +} + + +#endif + + /* end of util.c */ |