summaryrefslogtreecommitdiff
path: root/src/include/taler_util.h
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2022-01-18 09:15:54 -0500
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2022-01-18 09:15:54 -0500
commitc10b783521cf312a29d78aef103b548a3d20e5e0 (patch)
tree6e44fe6468a306bb7280a19e639e58478443cfa6 /src/include/taler_util.h
parent766a291151e18ff08cfbf7bee0a322588e846cce (diff)
downloadexchange-c10b783521cf312a29d78aef103b548a3d20e5e0.tar.gz
exchange-c10b783521cf312a29d78aef103b548a3d20e5e0.tar.bz2
exchange-c10b783521cf312a29d78aef103b548a3d20e5e0.zip
use 'pipe' instead of 'eventfd' on non-Linux systems
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r--src/include/taler_util.h14
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